


Rprofile in the current directory or in the user’s home directory (in that order) is searched for. The name of this file is taken from the environment variable R_PROFILE_USER if unset, a file called. Then, unless –no-init-file was given, R searches for a user profile and sources it.

If that variable is unset, the default R_HOME/etc/Rprofile.site is used if this exists.

The name of this file is taken from the value of the R_PROFILE environment variable. Then R searches for the site-wide startup profile unless the command line option –no-site-file was given. (See help(“Startup”) for a precise description.) Variables you might want to set include R_PAPERSIZE (the default paper size), R_PRINTCMD (the default print command) and R_LIBS (specifies the list of R library trees searched for add-on packages). These files should contain lines of the form ‘name=value’. Renviron in the current or in the user’s home directory (in that order) are searched for. The user file is the one pointed to by the environment variable R_ENVIRON_USER if this is set otherwise, files. The name of the site file is the one pointed to by the environment variable R_ENVIRON if this is unset, R_HOME/etc/Renviron.site is used (if it exists). Unless –no-environ was given, R searches for user and site files to process for setting environment variables. The startup mechanism is as follows (see also the on-line help for topic ‘Startup’ for more information, and the section below for some Windows-specific details). Most options control what happens at the beginning and at the end of an R session. You need to ensure that either the environment variable TMPDIR is unset or it points to a valid place to create temporary files and directories. Or, via the R CMD interface, as a wrapper to various R tools (e.g., for processing files in R documentation format or manipulating add-on packages) which are not intended to be called “directly”.Īt the Windows command-line, Rterm.exe is preferred to R.
