Re: [R] how to run a script at the beginning of an interacive session ?

2005-06-08 Thread Marc Schwartz
On Tue, 2005-06-07 at 21:33 -0700, Mike R wrote: On 6/7/05, Marc Schwartz [EMAIL PROTECTED] wrote: On 6/7/05, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 6/7/05, Liaw, Andy [EMAIL PROTECTED] wrote: snips Thanks Andy, Gabor and Marc. contents of .Rprofile .First -

Re: [R] how to run a script at the beginning of an interacive session ?

2005-06-08 Thread Mike R
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

Re: [R] how to run a script at the beginning of an interacive session ?

2005-06-08 Thread Marc Schwartz
On Wed, 2005-06-08 at 11:32 -0700, Mike R wrote: 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)!=)

[R] how to run a script at the beginning of an interacive session ?

2005-06-07 Thread Mike R
Hi All, How does one create an executable R-script, similar to an executable python script, or shell script except that when the R-script is finished, the R session remains open and becomes interactive. If I do this: R script.r then R exits when finished. On the other hand, starting R

Re: [R] how to run a script at the beginning of an interacive session ?

2005-06-07 Thread Gabor Grothendieck
On 6/7/05, Mike R [EMAIL PROTECTED] wrote: Hi All, How does one create an executable R-script, similar to an executable python script, or shell script except that when the R-script is finished, the R session remains open and becomes interactive. If I do this: R script.r then R

Re: [R] how to run a script at the beginning of an interacive session ?

2005-06-07 Thread Marc Schwartz
On Tue, 2005-06-07 at 19:37 -0700, Mike R wrote: Hi All, How does one create an executable R-script, similar to an executable python script, or shell script except that when the R-script is finished, the R session remains open and becomes interactive. If I do this: R script.r

Re: [R] how to run a script at the beginning of an interacive session ?

2005-06-07 Thread Mike R
On 6/7/05, Marc Schwartz [EMAIL PROTECTED] wrote: On 6/7/05, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 6/7/05, Liaw, Andy [EMAIL PROTECTED] wrote: snips Thanks Andy, Gabor and Marc. contents of .Rprofile .First - function() {source(startup.r)} contents of wrapR.v1