[R] Batch mode on windows

king@tolstoy.newcastle.edu.au king at tolstoy.newcastle.edu.au
Thu Oct 17 00:35:35 CEST 2002


Posted on behalf of chenwj <stop4optimal at hotmail.com> who is having
trouble posting.

hi all,

I'm completely new in R, and here are my questions (under windows):

1.  i want to run my four R files (pl1.r -- pl4.r) in batch mode.  i'd
like to write a batch file using Rterm.exe, since i dont get perl
installed on my computer.  My experimental batch file (*.bat) didnt work,
which contains the following lines.  however it works well when i pasted
each single line to run in the command prompt (eg. cmd).  i wonder what's
wrong with my batch file.

D:\R\bin\Rterm.exe --vanilla <d:\work\pl1.r> pl1.out
D:\R\bin\Rterm.exe --vanilla <d:\work\pl2.r> pl2.out
D:\R\bin\Rterm.exe --vanilla <d:\work\pl3.r> pl3.out
D:\R\bin\Rterm.exe --vanilla <d:\work\pl4.r> pl4.out

  
2. If one of my above R files contains a function from a outside package
(eg. quantreg), how to load it in command prompt, or how to get the
package loading process involved in my batch file?

Can anyone give me some guide?

thanks a million.

regards,
chenwj



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list