[R] reading .Rprofile at startup in R 2.0.0
Mike Prager
Mike.Prager at noaa.gov
Sat Nov 6 17:15:24 CET 2004
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:
>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
--
Michael Prager, Ph.D. <Mike.Prager at noaa.gov>
NOAA Beaufort Laboratory
Beaufort, North Carolina 28516
http://shrimp.ccfhrb.noaa.gov/~mprager/
***
More information about the R-help
mailing list