I don't know what SPlus does, but I run batch programs like this: R --vanilla < myscript.R I got this from reading man R (in Unix/Linux - perhaps there is something like this in Windows). The file myscript.R can read input and write output using commands like read.table() or scan() and write.table() or cat(). But I think I've had trouble getting it to display graphs. Try it, if that's what you want. For an example of a batch file, see: regupdate.R in http://finzi.psych.upenn.edu/~baron/ Jon -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
BATCH mode
2 messages · Jonathan Baron, Tomomi TAKASHINA
I don't know what SPlus does, but I run batch programs like this: R --vanilla < myscript.R I got this from reading
If you are using one of typical shells in Unixes, you can do like the following. ---- #!/csh -f # # Something for preparation # R --vanilla << EOF # Put R Code here, it's convinient that you can use macro # substitutions here. EOF # # Something for finalize # =================================== Tomomi TAKASHINA http://homepage.mac.com/t_takashina ----------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._