Skip to content
Back to formatted view

Raw Message

Message-ID: <XFMail.090428221126.Ted.Harding@manchester.ac.uk>
Date: 2009-04-28T21:11:26Z
From: (Ted Harding)
Subject: Newbie R question
In-Reply-To: <FE44E0D7EAD2ED4BB2165071DB8E328C04E84AC0@egcrc-ex01.egcrc.org>

On 28-Apr-09 20:42:45, 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!'?
> 
> Regards,
> 
> Tena Sakai
> tsakai at gallo.ucsf.edu

An unusual request! I had to browse 'man R' a bit before getting
a hint.

  R --silent --nosave < barebone.R

should do it!
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 28-Apr-09                                       Time: 22:11:23
------------------------------ XFMail ------------------------------