Hi, I was trying to use the batch mode "rcmd" under Windows NT. The online help says the right command should be "Rcmd BATCH [options] infile [outfile]". But when I type "rcmd BATCH aaa.r" I got message of "The name specified is not recognized as an internal or external command, operable program or batch file." What is wrong? I know this is a quite elementary question, but I really can not find the answer from the docs. Thank you very much! Shige Song Department of Sociology, UCLA -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Sorry to answer this _without_ re-reading the docs, but what works for me is: R --vanilla < aaa.R The file aaa.R contains any commands I need to write other things to the disk. I'm sure there are other ways to do it. 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
The correct syntax should be: rterm --no-restore --no-save <aaa.r>aaa.out. The problem is that I don't have perl installed in my computer.Best, Shige On Fri, 13 Apr 2001 10:38:39 +0100 (GMT Daylight Time) Prof Brian D Ripley <ripley at stats.ox.ac.uk> wrote:> On Fri, 13 Apr 2001, Shige Song wrote: > > > I was trying to use the batch mode "rcmd" under Windows NT. The online > > help says the right command should be "Rcmd BATCH [options] infile [outfile]". > > But when I type "rcmd BATCH aaa.r" I got message of "The name specified > > is not recognized as an internal or external command, operable program > > or batch file." What is wrong? I know this is a quite elementary > > question, but I really can not find the answer from the docs. Thank you > > very much! > > Try reading them more carefully! Is Rcmd.exe in your path? Is it actually > installed (it is not part of the default installation)? > > -- > Brian D. Ripley, ripley at stats.ox.ac.uk > Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ > University of Oxford, Tel: +44 1865 272861 (self) > 1 South Parks Road, +44 1865 272860 (secr) > Oxford OX1 3TG, UK Fax: +44 1865 272595-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Shige Song wrote:> > Hi, > > I was trying to use the batch mode "rcmd" under Windows NT. The online > help says the right command should be "Rcmd BATCH [options] infile [outfile]". > But when I type "rcmd BATCH aaa.r" I got message of "The name specified > is not recognized as an internal or external command, operable program > or batch file." What is wrong? I know this is a quite elementary > question, but I really can not find the answer from the docs. Thank you > very much!1. Install R (including the file rw1022sp.zip, if not compiling from source) 2. Set "...\rw1022\bin" to your path 3. Install perl Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._