R-packages

From Cheaha
Revision as of 19:17, 14 January 2013 by Rkumar@uab.edu (talk | contribs) (Created page with " == 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 nam...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Attention: Research Computing Documentation has Moved
https://docs.rc.uab.edu/


Please use the new documentation url https://docs.rc.uab.edu/ for all Research Computing documentation needs.


As a result of this move, we have deprecated use of this wiki for documentation. We are providing read-only access to the content to facilitate migration of bookmarks and to serve as an historical record. All content updates should be made at the new documentation site. The original wiki will not receive further updates.

Thank you,

The Research Computing Team

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