[R] Rprofile.site not executed?

john seers (IFR) john.seers at bbsrc.ac.uk
Wed Jan 16 15:24:36 CET 2008


I am running under Windows XP using R2.6.1.

I pasted your code in my Rprofile.site in the etc directory and it
worked for me.

All I can suugest is:

1. Check you really put it in the etc directory. (Do you have an old
version of R somewhere ...?)
2. Is it really called Rprofile.site. (Not .RProfile.site?)
3. Is your Rprofile.site protected against read? Or the etc directory?





-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of Fernando Saldanha
Sent: 16 January 2008 14:00
To: R-help at r-project.org
Subject: [R] Rprofile.site not executed?

It seems that my Rprofile.site file is not executed when I start R. To
test this I included the following code in that file:

 .First <- function(){
 cat("\nWelcome at", date(), "\n")

When I start R the message above is not displayed.

I am running R 2.6.1 (rgui.exe) under Vista Home Premium. The
Rprofile.site is in the etc folder and the R_PROFILE variable has the
value "".

I looked in the help (?Startup) but could not figure out what is wrong.
Any suggestions?



R-help at r-project.org mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list