[R] reading .Rprofile at startup in R 2.0.0

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat Nov 6 18:02:29 CET 2004


On Sat, 6 Nov 2004, Mike Prager wrote:

> You wouldn't find info on setting environment variables in the R FAQ 
> because environment variables are an operating system feature.  Under 

You _will_ find it in the rw-FAQ, as mentioned in the posting guide and by 
Patrick!

It is actually very easy, just add

HOME="c:\Documents and Settings\Giraudoux"

to the end of target in the shortcut you use to start R.  If that is too 
difficult, Mike Prager's comments are way too advanced.

PLEASE don't post inaccurate versions of information that is in the FAQs:  
at least become familiar with FAQ yourself and ask your readers to
familiarize themselves if you want to amplify the entries.

> recent versions of Windows, environment variables are stored in the 
> Registry and can be set persistently through a dialog. In Windows XP, this 
> is found under My Computer; Properties; Advanced; Environment Variables. I 
> would set a User, rather than System, variable; it matters only if more 
> than one user on your PC is making use of R and they want different profiles.
> 
> As you say, unless you are familiar with this, it could be easier just to 
> move the file. The advantage of using an environment variable is that you 
> can put the file where YOU want it. To most folks, that is a non-issue. 
> Some of us however are determined to bend computers to our wills, rather 
> than the other way around. We frequently fail but keep trying.
> 
> Regards,
> MHP
> 
> At 10:38 AM 11/06/2004, H Patrick Giraudoux wrote:
> >Thanks for the hint. Having got through the "CHANGES" file as advised by 
> >Pr Ripley (I unfortunately checked first the "NEWS" file and forgot that 
> >one..) I found it may be more simple (to me) to put the .RProfile file 
> >into the "my documents" directory. It works fine now. Setting environment 
> >variables is probably easy when one knows exactly which file to manage 
> >with and where it is... which is not the case to me yet (even after having 
> >read carefully the rw-FAQ 2.13).
> >
> >All the best,
> >
> >Patrick
> >
> >
> >A 09:39 06/11/2004 -0500, vous avez écrit :
> >>Consider setting the environment variable R_USER="c:\Documents and 
> >>Settings\Giraudoux"
> >>
> >>MHP
> >>
> >>At 08:55 AM 11/06/2004, you wrote:
> >>>Dear listers,
> >>>
> >>>Moving from R 1.9.1 to R 2.0.0 today, it happens that the "traditional" 
> >>>.RProfile (located in my home directory: C:\Documents and 
> >>>Settings\Giraudoux) is not read at startup with R 2.0.
> >>>
> >>>Any suggestion?
> >>>
> >>>Patrick Giraudoux
> >>
> >>
> >>--
> >>Michael Prager, Ph.D.                <Mike.Prager at noaa.gov>
> >>NOAA Beaufort Laboratory
> >>Beaufort, North Carolina  28516
> >>http://shrimp.ccfhrb.noaa.gov/~mprager/
> >>***
> >
> >______________________________________________
> >R-help at stat.math.ethz.ch mailing list
> >https://stat.ethz.ch/mailman/listinfo/r-help
> >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> 
> 
> 

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list