[R] Rscript: how to suppress all output

Gabor Grothendieck ggrothendieck at gmail.com
Sat Jan 2 23:25:08 CET 2010


Try this on Windows:

Rscript test.r 1>NUL 2>NUL


On Sat, Jan 2, 2010 at 3:27 PM, johannes rara <johannesraja at gmail.com> wrote:
> How can I suppress ALL output when running Rscript in Terminal?
>
> ~/Documents>Rscript test.r
>
> I tried options --slave, --vanilla with no success. I get these
>
> Loading required package: methods
> ..etc..
>
> and other output as well.
>
> -J
>
>> sessionInfo()
> R version 2.9.2 (2009-08-24)
> i386-apple-darwin8.11.1
>
> locale:
> fi_FI.UTF-8/fi_FI.UTF-8/C/C/fi_FI.UTF-8/fi_FI.UTF-8
>
> attached base packages:
> [1] grid      splines   stats     graphics  grDevices utils
> datasets  methods   base
>
> other attached packages:
> [1] ggplot2_0.8.3   reshape_0.8.3   plyr_0.1.9      proto_0.3-8
> Hmisc_3.7-0     survival_2.35-7
>
> loaded via a namespace (and not attached):
> [1] cluster_1.12.1  lattice_0.17-26
>>
>
> ______________________________________________
> 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