This document describes how CCAST users can install third-party packages and libraries for the R language in their home directories.
$ module load R/3.5.1
$ R
R version 3.5.1 (2018-07-02) -- "Feather Spray"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.Natural language support but running in an English localeR is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.>
> install.packages(“MASS”)
Warning in install.packages("MASS") :
'lib = "/gpfs1/apps/global/opt/R/v3.5.1/lib64/R/library"' is not writable
Would you like to use a personal library instead? (yes/No/cancel) yes
Would you like to create a personal library
‘~/R/x86_64-pc-linux-gnu-library/3.5’
to install packages into? (yes/No/cancel) yes
--- Please select a CRAN mirror for use in this session ---
Secure CRAN mirrors.
.
.
57: UK (London 1) [https] 58: USA (CA 1) [https]
59: USA (IA) [https] 60: USA (KS) [https]
61: USA (MI 1) [https] 62: USA (MI 2) [https]
63: USA (OR) [https] 64: USA (TN) [https]
65: USA (TX 1) [https] 66: Uruguay [https]
67: (other mirrors)Selection: 59
trying URL 'https://mirror.las.iastate.edu/CRAN/src/contrib/MASS_7.3-51.4.tar.gz'
Content type 'application/x-gzip' length 487233 bytes (475 KB)
==================================================
downloaded 475 KB* installing *source* package ‘MASS’ ...
** package ‘MASS’ successfully unpacked and MD5 sums checked
** libs
/gpfs1/apps/centos7/opt/spack/linux-rhel7-x86_64/gcc-4.8.5/gcc-7.3.0-xegsmw4io2dcncdni4rqhfmhuzljcg3l/bin/gcc -I"/global/opt/R/v3.5.1/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -I/global/opt/R/packages-rhel7/include -c MASS.c -o MASS.o
/gpfs1/apps/centos7/opt/spack/linux-rhel7-x86_64/gcc-4.8.5/gcc-7.3.0-xegsmw4io2dcncdni4rqhfmhuzljcg3l/bin/gcc -I"/global/opt/R/v3.5.1/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -I/global/opt/R/packages-rhel7/include -c lqs.c -o lqs.o
/gpfs1/apps/centos7/opt/spack/linux-rhel7-x86_64/gcc-4.8.5/gcc-7.3.0-xegsmw4io2dcncdni4rqhfmhuzljcg3l/bin/gcc -shared -L/global/opt/R/v3.5.1/lib64/R/lib -L/global/opt/R/packages-rhel7/lib -lcurl -o MASS.so MASS.o lqs.o -L/global/opt/R/v3.5.1/lib64/R/lib -lR
installing to /gpfs1/home/ndsu.ndusek/R/x86_64-pc-linux-gnu-library/3.5/MASS/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (MASS)The downloaded source packages are in
‘/tmp/Rtmp0RcVfV/downloaded_packages’
> require(“MASS”)
Loading required package: MASS
> quit()Save workspace image? [y/n/c]: n