Rprofile.site not executed?

View: New views
4 Messages — Rating Filter:   Alert me  

Rprofile.site not executed?

by Fernando Saldanha-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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")
 flush.console()
}

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?

Thanks.

FS

______________________________________________
R-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: Rprofile.site not executed?

by john seers (IFR) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 
Hi

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?

Regards

JS

 




 
---

-----Original Message-----
From: r-help-bounces@... [mailto:r-help-bounces@...]
On Behalf Of Fernando Saldanha
Sent: 16 January 2008 14:00
To: R-help@...
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")
 flush.console()
}

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?

Thanks.

FS

______________________________________________
R-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: Rprofile.site not executed?

by marciarr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have exactly the same problem, just made the same question to the list 2 hours after you (your message was still not posted). Hope someone answers us!


Fernando Saldanha wrote:
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")
 flush.console()
}

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?

Thanks.

FS

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: Rprofile.site not executed?

by Duncan Murdoch-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 1/16/2008 8:59 AM, Fernando Saldanha wrote:

> 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")
>  flush.console()
> }
>
> 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 "".

That may be your problem.  Having the value "" is different from not
existing.  Sys.getenv("R_PROFILE") will return "" in either case, but
names(Sys.getenv()) will not show it if it doesn't exist.

If this isn't your problem, then please try the advice I sent to Marcia
a few minutes ago.

Duncan Murdoch

>
> I looked in the help (?Startup) but could not figure out what is
> wrong. Any suggestions?
>
> Thanks.
>
> FS
>
> ______________________________________________
> R-help@... mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.