Just add the line

R_LIBS_SITE=F:/R/library

to the file R_HOME/etc/x64/Renviron.site

Best,
Uwe Ligges





On 28.07.2015 15:53, Michael Friendly wrote:
I'm the faculty member in my department who advises our IT staff on the
details of installing R for
students and faculty on our Windows 7 lab network.  We are about to
upgrade from R 3.1.1 to
R 3.2.1, and once that is done, this version of R and all installed
packages will be frozen in the
image that appears in C:/Program Files/R/R-3.2.1/ on every lab computer,
and this image is
refreshed on each computer at each new login.

Every user has a persistent home directory across all university lab
computers, typically their
F:/ drive (students) and/or X:/ drive (faculty).  I need to give
instructions to our IT staff for how to
arrange for a personal library, say
F:/~R/library
to be be set automatically, and included in .libPaths() so that
install.packages() and update.packages()
will work using that path.

At present, there is no file R_HOME/etc/Renviron.site and
R_HOME/etc/Rprofile.site is the vanilla
version with everything commented out, including
# set a site library
# .Library.site <- file.path(chartr("\\", "/", R.home()), "site-library")

Environmental variables set for users include
HOMEDRIVE=F:
HOMEPATH=\
HOMESHARE=\\vfadmin.yorku.yorku.ca\HH\HOME\friendly
with the latter mapped to the X: drive

What is the code to be added to Rprofile.site to make this work?

thanks,
-Michael




______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to