Skip to content

reading .Rprofile at startup in R 2.0.0

6 messages · Patrick Giraudoux, Mike Prager, Brian Ripley

#
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
#
On Sat, 6 Nov 2004, Patrick Giraudoux wrote:

            
Do read the CHANGES file!  Probably that is a result of

   Changed search order for user home directory to use "My Documents"
   directory after HOME and before HOMEDRIVE/HOMEPATH.

To be sure, read the rw-FAQ (as the posting guide asks) Q2.12 and check 
the advice there.
#
Consider setting the environment variable R_USER="c:\Documents and 
Settings\Giraudoux"

MHP
At 08:55 AM 11/06/2004, you 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 :
#
You wouldn't find info on setting environment variables in the R FAQ 
because environment variables are an operating system feature.  Under 
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:

  
    
#
On Sat, 6 Nov 2004, Mike Prager wrote:

            
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.