[R] R CMD BATCH: cat does not print

Paul Smith phhs80 at gmail.com
Thu Aug 30 13:56:02 CEST 2007


On 8/30/07, Vladimir Eremeev <wl2776 at gmail.com> wrote:
>
> Use rscript
>
> Rscript myscript.R
> or
> Rscript -e 'cat("Hello!\n")'
>
> will show Hello! on the console.
>
> R CMD BATCH writes its output to the file myscript.Rout

Thanks, Vladimir. Rscript is exactly what I was looking for!

Paul



> Paul Smith wrote:
> >
> > Dear All,
> >
> > I am trying to write my first R script. The code is simply
> >
> > cat("Hello!\n")
> >
> > However, when I run
> >
> > $ R CMD BATCH myscript.R
> >
> > I do not see "Hello!" on the console. I am using Fedora 7 (Linux) and
> > R-2.5.1.
> >
> > Any ideas?
> >
> > Thanks in advance,
> >
> > Paul
> >
>
>
>
>
> --
> View this message in context: http://www.nabble.com/R-CMD-BATCH%3A-cat-does-not-print-tf4353572.html#a12405494
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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