Skip to content
Back to formatted view

Raw Message

Message-ID: <971536df1001021425h1cec9f21i7607eb92488e2adf@mail.gmail.com>
Date: 2010-01-02T22:25:08Z
From: Gabor Grothendieck
Subject: Rscript: how to suppress all output
In-Reply-To: <f49fcd831001021227j2294f2cbm3cbfe31d462ce9db@mail.gmail.com>

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.
>