[R] Newbie R question

Wacek Kusnierczyk Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Tue Apr 28 23:04:48 CEST 2009


Tena Sakai wrote:
> Hi,
>
> I am a newbie with R.  My environment is linux and
> I have a file.  I call it barebone.R, which has one
> line:
>
>  cat ('Hello World!\n')
>
> I execute this file as:
>
>  R --no-save < barebone.R
>
> And it does what I expect.  What I get is 20+/- lines
> of text, one of which is 'Hello World!'.
>
> How would I go about getting rid of all but the line I
> am after, 'Hello World!'?
>   

man R
/quiet

R --slave <<< "cat('foo\n')"
# foo

vQ




More information about the R-help mailing list