Newbie R question PART2
Tena Sakai wrote:
Hi,
Many thanks to Wacek Kusnierczyk and Ted Harding.
I learned 3 new tricks. (Not bad for a newbie?)
$ R --silent --no-save < barebone.R
$ R --quiet --no-save < barebone.R
$ R --slave < barebone.R
With slight differences, they all do what I wanted.
Moving right along my tiny agenda...
Given the same one-liner,
cat ('Hello World!\n')
would someone please show me how to turn this one liner
into a web page with Rpad?
For the basic 'put text in an html page'
library(hwriter)
htmlFile = tempfile()
hwrite("Hello World", htmlFile)
browseURL(htmlFile)
for more advanced static pages
example(hwrite)
Martin
Obviously, What I want to build is a web page, where it say "click <here>" and when it is clicked the screen blanks out and give a line: Hello World! I have looked at an example or two of Rpad, but it was overly complicated for simpleminded newbie. Regards, Tena Sakai tsakai at gallo.ucsf.edu -----Original Message----- From: Ted.Harding at manchester.ac.uk [mailto:Ted.Harding at manchester.ac.uk] Sent: Tue 4/28/2009 2:11 PM To: r-help at r-project.org Cc: Tena Sakai Subject: RE: [R] Newbie R question 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 ------------------------------ [[alternative HTML version deleted]]
______________________________________________ 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.