R-packages

From UABgrid Documentation
Jump to: navigation, search

R-packages - A central location for external R packages.

The path for dicrectory is '/share/apps/ngs-ccts/R_packages/'

Example for installing a package named "HMP"

module load R/R-2.15.0   # load an appropriate R module
export R_LIBS=/share/apps/ngs-ccts/R_packages/    #export a environment variable which have the path for R library
R    #launch R
install.packages("HMP")   #to install library HMP
library("HMP")            #to load library HMP

Example for using a library HMP (if already installed)

module load R/R-2.15.0   # load an appropriate R module
export R_LIBS=/share/apps/ngs-ccts/R_packages/    #export a environment variable which have the path for R library
Inside R
library("HMP")            #to load library HMP
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox