This procedure lists steps to install R packages, and assumes that the user has created a repository in the R sandbox area as described in Creating a Repository for R and OS Packages.
- Log in to the queen node of the Aster cluster as root.
- Copy the R packages into the repository created (/var/opt/teradata/rrepo).
- Change to the repository directory. cd /var/opt/teradata/rrepo
- Reset the security settings for the rrepo folder. chmod -R 755 *
-
Install R packages.
ncli apm install R --packages=<RPackage1FileName>,<RPackage2FileName>,...
For example:
ncli apm install R --packages=lpSolve_5.6.10.tar.gz ncli apm install R --packages=lpSolve_5.6.10.tar.gz,sampling_2.6.tar.gzSome R packages may have a different internal structure. If the above command does not work, try using the package name instead of the filename, as shown here:ncli apm install R --packages=<RPackage1PackageName>
For example:
ncli apm install R --packages=lpSolve