Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Installing R packages locally is fairly straight forward.
  1. first load the R environment module
    module load R/3.02
  2. launch R
    R
  3. then install the package, using generic package_name here
    install.packages("package_name", repos="http://cran.r-project.org")
  4. Assuming that you do not have a personal library directory you will see
    Warning in install.packages("package_name", repos = "http://cran.r-project.org") :
    'lib = "/opt/R/3.0.2/lib64/R/library"' is not writable
    Would you like to use a personal library instead?  (y/n)
  5. Select 'y'
  6. Select 'y' again when prompted to create the directory
  7. your package should download and install into your personal library directory
  • No labels