Re: [R] one way to write scripts in R

2010-03-29 Thread Jason E. Aten
Okay, I'll try again with .txt extension. Thanks David. On Mon, Mar 29, 2010 at 12:50 PM, David Winsemius wrote: > I would have made it through the mail-server had you given it an extension > of .txt but not so with the .rsh extension. > > > > On Mar 29, 2010, at 12:31

Re: [R] one way to write scripts in R

2010-03-29 Thread Jason E. Aten
> > show$syntax <- 43 > > Sys.setenv(AN_ENV_VAR="greetings (I'm an env var!)") > > > > fn$cat('Getting `Sys.getenv("AN_ENV_VAR")` from the environment, on > $today, > + `show$syntax` is also possible.\n') > Getting greetings (I'm an en

[R] one way to write scripts in R

2010-03-29 Thread Jason E. Aten
x27;t make any warrantees that this will work for you, but if it helps somebody at least get starting utilizing R effectively in scripts, then great! Best regards, Jason -- Jason E. Aten, Ph.D. # file: scriptdemo.rsh #!/bin/bash exec R --vanilla -q --slave -e "source(file=pipe(\&quo