On 6/8/05, Marc Schwartz <[EMAIL PROTECTED]> wrote:
<snips>

Thanks Marc,

Cool ideas, thanks!  Building on them, here is a twist. 

With this line in .Rprofile:

  .First <- function() {if(Sys.getenv("R_PROJECT")!="")
source(Sys.getenv("R_PROJECT"))}

R can be run with this bash command line:

##  export R_PROJECT=project_A.R;  R; unset R_PROJECT


Alternatively, R could be run with this bash command line:

##  wrapR project_4.R

---- contents of wrapR ----
#! /bin/bash
export R_PROJECT=$1
R 
---- end ----

What do you think? 

Thanks in advance,
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