Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

We have written an R package client to the Concept Library API, which allows you to connect and download content directly into data frames in R.

Downloading and installing the R package

External: the package is available on Github and can be installed using the install_github() function in devtools. This will automatically download and install dependencies, like installing from CRAN.

...

Internal: the package is available with other packages we have developed for SAIL users, in R:/r_packages/ConceptLibraryClient. Please run the install.r script to install the package and dependencies.

Getting concepts into data frames

To bring content into R, first search the concept library for the concept you want and note its ID number. If you want to get a specific version of a concept, also note its version ID (if not specified, you will always get the latest version). Then use the commands below to retrieve concepts.

...