Re: [R] .First and .Rprofile won't run on startup

2008-07-15 Thread Susan Amrose
Thanks to everyone for the help and advice! It turns out that my problem was using $HOME in the .First function in Rprofile.site. Since $HOME is a user specific variable, it seems to have crashed when running from the $R_HOME/etc/ directory. I added the other .Rprofile files without deletng the Rpr

Re: [R] .First and .Rprofile won't run on startup

2008-07-14 Thread Bryan Hanson
I accomplish this a little differently. On the mac, in your home directory (e.g. /Users/susanamrose) there is/could be a hidden file called .Rprofile You can edit it with vi for instance by getting a terminal window and >vi .Rprofile It will be created it if it doesn't exist. I keep all my loca

Re: [R] .First and .Rprofile won't run on startup

2008-07-14 Thread Rolf Turner
On 15/07/2008, at 6:34 AM, Susan Amrose wrote: I'm trying to source a file automatically every time I start R. I tried adding the following .First function in a file Rprofile.site in my $R_HOME/etc/ directory (verified $R_HOME by Sys.getenv()) as well as in a file .Rprofile in my $HOME dire

[R] .First and .Rprofile won't run on startup

2008-07-14 Thread Susan Amrose
I'm trying to source a file automatically every time I start R. I tried adding the following .First function in a file Rprofile.site in my $R_HOME/etc/ directory (verified $R_HOME by Sys.getenv()) as well as in a file .Rprofile in my $HOME directory and .Rprofile in the working directory: .First <-