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 <- function(){
source(file.path(Sys.getenv("HOME"), "R", "functions","standard.r"))
       cat("Actually read your file!!!!")
}

- but no luck. I'm using a Mac (OS 10.4). It never runs (the file is not
sourced and the text does not appear). Does anyone have any suggestions?

Ideally, I would like to have a directory and source all the files in the
directory in startup, but this is just a first step (is that possible?).

Thanks in advance!!
 -Susan

	[[alternative HTML version deleted]]

