Skip to content
Prev 8717 / 63421 Next

Rprofile.site assignments occur in base package (PR#2448)

bert_gunter@merck.com wrote:
It *is* documented in, e.g., ?Rprofile:

"Then R searches for the site-wide startup profile unless the command 
line option --no-site-file was given. The name of this file is taken 
from the value of the R_PROFILE environment variable. If this variable 
is unset, the default is `$R_HOME/etc/Rprofile.site', which is used if 
it exists (which it does not in a ``factory-fresh'' installation). This 
code is loaded into package base.

Then, unless --no-init-file was given, R searches for a file called 
`.Rprofile' in the current directory or in the user's home directory (in 
that order) and sources it into the user workspace."

Uwe Ligges