Skip to content
Prev 371397 / 398506 Next

R_LIBS_USER not in libPaths

On 09/16/2017 11:29 AM, Rene J Suarez-Soto wrote:
If the directory pointed to by R_LIBS_USER does not exist, then 
.libPaths() will not contain it. This is documented on ?.libPaths or 
?R_LIBS_USER

      Only directories
      which exist at the time will be included.

The file in the user home directory is .Renviron, rather than 
Renviron.site. This documented at, e.g,. ?Renviron

      The name of the user file
      can be specified by the 'R_ENVIRON_USER' environment variable; if
      this is unset, the files searched for are '.Renviron' in the
      current or in the user's home directory (in that order).

R environment variables are set when R starts; I can discover these, on 
linux, by invoking the relevant command-line command after running R CMD

$ env|grep "^R_"
$

(i.e., no output) versus

$ R CMD env|grep "^R_"
R_UNZIPCMD=/usr/bin/unzip
...

Generally, ?Startup describes the startup process, and most variables 
are described in R via ?R_...

Martin
This email message may contain legally privileged and/or...{{dropped:2}}