Install and load R packages into server work space

Users of the CISER research servers may not write to the C drive of the servers, therefore you need to direct the installation of R packages onto your own work space.

To install and load R packages to your work space, a sample is shown below of install the SemiPar package for your reference.

First, using Windows Explorer create a sub-directory on your U drive to store your packages say, RPackages.

Then in R, type the following commands:

install.packages(“SemiPar”, lib=”U:/RPackages”)

library(SemiPar, lib=”U:/RPackages”)

Note that in the install.packages command, SemiPar is enclosed in quotes, but not in the library command.