[R] Runnin R prorams from a command line
John Fox
jfox at mcmaster.ca
Sun Sep 29 21:17:56 CEST 2002
Dear Ari,
At 12:58 PM 9/29/2002 -0400, Ari J Russo wrote:
>Hello, I am a new R user, using version 1.5.1. I am
>attempting to run R programs from a dos command line
>(in win2000) and am having problems. My goal is to
>be able to use R from batch scripts in both windows
>and also in Linux eventually later.
>
>When I first ran "rcmd BATCH --help" it said that
>perl was not found. after installing perl and
>running again, I received the following error:
>
>C:\Program Files\R\rw1051\bin>rcmd BATCH -h
>Can't locate R/Utils.pm in @INC (@INC contains:
>C:\PROGRA~1\R\rw1051\share\per
>C:/ActivePerl/Perl/lib C:/ActivePerl/Perl/site/lib
>.) at C:\PROGRA~1\R\rw1051/
>n/BATCH line 22.
>BEGIN failed--compilation aborted at
>C:\PROGRA~1\R\rw1051/bin/BATCH line 22.
The program to use is rterm.exe, not rcmd.exe. To run rterm with file
input, enter
Rterm.exe --no-restore --no-save < input-file > output-file
at the DOS prompt (where, of course, input-file and output-file represent
the files with your input and to hold your output). For more information,
see the README and README.Rterm files in the main R directory.
I hope that this helps,
John
-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
-----------------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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