[R] Environment variables under Windows

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu Oct 10 13:32:26 CEST 2002

On Thu, 10 Oct 2002, John Miyamoto wrote:

> Greetings,
> I have a question pertaining to the concept of "environment variables"
> that is mentioned in the R documentation for "Startup" and also in the
> discussion of the Windows configuration of R in the recent book "An
> Introduction to R" authored by Venables, Smith, and the R Development Core
> Team (referred to as VS in this message).
> The Startup documentation and VS make reference to environment variables,
> e.g., R\_ENVIRON, R_USER, or R\_PROFILE.  Apparently the R startup
> procedure operates differently depending on whether these variables are
> "set" or "unset".  What is unclear to me is how to set these variables.
> For example, is something to be done with the AUTOEXEC.BAT file or the
> CONFIG.SYS file, or perhaps one must alter the Properties of the shortcut
> icon for R?  Another possibility is that one must insert some lines in the
> RProfile file.  On my installation I have two files names RProfile.  The
> first is in the directory \rw1041\etc, and the second is in the directory,
> \rw1041\library\base\R.  Does one "set" an environment variable by placing
> an appropriate line in a RProfile file?

No. See the rw-FAQ questions 2.2 and 3.2.

You either use the command line or the .Renviron file (just as is
documented for Unix).

Please upgrade from rw1041 to rw1060 first.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list