On 6/8/05, Mike R <[EMAIL PROTECTED]> wrote:
<snip>
> From the command line, I'd like to be able to start an
> interactive R session and at the same time, be able
> to specify on the command line a project-specific or
> task-specific script (R code) that is to be executed
> at the beginning of the session.

My new version of .First:


.First <- function() 
{ 
 print(version)
 cat("\n")
 CmdLineFilenames <<- strsplit(Sys.getenv("R_CUSTOM")," ")[[1]]
 for ( fn in CmdLineFilenames )
 {
  cat( "sourcing ", fn, "\n" )
  source(fn)
 }
 cat("\n")
}


Best,
Mike

______________________________________________
R-help@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

Reply via email to