[R] Problem in using BATCH command
Henrik Bengtsson
hb at stat.berkeley.edu
Tue Sep 22 18:28:27 CEST 2009
You probably want to use the source() command in R.
R CMD BATCH is used from the command line - it's rare that people use
it (unless they really know what they are doing).
/Henrik
On Tue, Sep 22, 2009 at 9:01 AM, Manuj Sharma <smanuj1970 at yahoo.in> wrote:
> I tried to use BATCH command to run an input file (a simple text file) which contained a few R commands.
>
> I first saw the BATCH help page using
> > ?BATCH
>
> The help page mentioned the Usage as:
> Batch Execution of RR CMD BATCH [options] infile [outfile]
>
> The Detailed section mentioned the following:
>
> Use R CMD BATCH --help to be reminded of the usage.
>
> My input file is called batchchk, which contains the following R commands:
> ls()
> ox <- read.table("rev_full_idle.out", header=TRUE)
> ov <- ox$Times
> length(ov)
> summary(ov)
>
> I loaded the utils library (probably it is loaded by default):
> > library(utils)
>
> I ran the following commands and got the indicated errors:
>
> > BATCH batchchk
> Error: unexpected symbol in "BATCH batchchk"
>
> > R CMD BATCH batchchk
> Error: unexpected symbol in "R CMD"
>
> > R CMD BATCH --help
> Error: unexpected symbol in "R CMD"
>
> > BATCH --help
> Error: object 'BATCH' not found
>
> Can somebody please point out where I am going wrong?
>
> Thanks in advance,
>
> Manuj
>
>
>
>
>
>
> Connect more, do more and share more with Yahoo! India Mail. Learn more. http://in.overview.mail.yahoo.com/
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
More information about the R-help
mailing list