R Installation of External Packages

image_pdfimage_print

Related articles: R Installation, Transform RScript

For the Transform RScript, a huge number of packages are available for various domains in statistical analysis. To use a package inside of a Transform RScript it has to be downloaded and installed in R first.

From within the R console enter:  install.packages()
You first have to choose once a CRAN repository, you can then choose the package that will be installed.

Note: by default R tries to install the libraries to the directory:  <R Installation directory>/library.

If you get an error message on insufficient authorizations you have to start the R console as an administrator.

Don’t use a personal library for the R packages. Depending on your authorizations, it might be that Jedox Integrator doesn’t have access to this directory.

As an alternative you can also use a different directory for the libraries by setting the environment variable R_LIBS to point to this directory.

For more information: http://cran.r-project.org/web/packages
Within the R console:  ?install.packages()

In Transform RScript these packages have to be declared with their name in the table “External Packages”. This generates the following R command for each package which are processed before the RScript transform:
>>
suppressPackageStartupMessages (require (<name of package>))
>>

image_pdfimage_print
Was this post helpful?
NoYes (No Ratings Yet)
Loading...