search for: scriptdemo

Displaying 1 result from an estimated 1 matches for "scriptdemo".

Did you mean: scriptdef
2010 Mar 29
3
one way to write scripts in R
...eating scripts of R code that are executable from the (at least Linux) command line. I don'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(\"tail -n +4 $0\"))" --args $@ #debug: exec R --vanilla --verbose -e "source(file=pipe(\"tail -n +4 $0\"))" --args $@ ### The above line starts R and then reads in this script, starting at line...