[R] R_LIBS_USER not in libPaths

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Sat Sep 16 17:57:00 CEST 2017

These environment variables are _inputs_ to the R startup sequence, and optional ones at that. If you don't set them then R makes default settings. Read the R Installation and Administration manual that comes with R for more information. 

You also need to understand the scope of environment variables, which is a topic specific to each operating system and is not specific to R. In a nutshell, a process (running program) that sets an environment variable can pass that setting to processes it starts, but the reverse is not true. If you want to set such variables for widespread use you can use the System control panel and logout and login so all processes will inherit them. 

Note that if you want to modify .libpaths in R you can do so without modifying environment variables. 
Sent from my phone. Please excuse my brevity.

On September 16, 2017 6:16:05 AM PDT, Rene J Suarez-Soto <rene.j.suarez at gmail.com> wrote:
>I have a computer where R_LIBS_USER is not found in libPaths. This is
>Windows (x64). I ran R from the command line, RGui and RStudio and I
>the same results. I also ran R --vanilla and I still get the
>The only thing I found interesting was that I also ran SET from the
>line and the "R related variables" (e.g.,  R_HOME; R_LIBS_USER) are not
>there. Therefore these variables are being set when I start R. I have
>been able to track where does R obtain the value for these.
>Aside from looking at
>http://stat.ethz.ch/R-manual/R-patched/library/base/html/Startup.html I
>not sure I have much more information that I have found useful.
>	[[alternative HTML version deleted]]
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list