Thank you, Martin, for clarification. What you pointed out to me is so nice, so much so that I want to frame it and entitle it as serendipity.
Regards, Tena Sakai tsa...@gallo.ucsf.edu -----Original Message----- From: Martin Morgan [mailto:mtmor...@fhcrc.org] Sent: Thu 4/30/2009 8:39 AM To: Tena Sakai Cc: ted.hard...@manchester.ac.uk; r-help@r-project.org Subject: Re: [R] Newbie R question PART2 Tena Sakai wrote: > Hi, > > The example given: > library(hwriter) > htmlFile = tempfile() > hwrite("Hello World", htmlFile) > browseURL(htmlFile) > > worked. Including the line: > example(hwrite) > which is very nice. > > But I am a bit confused. Am I using elements > of Rpad package? Or is this strictly to do > with hwriter package? sorry, it is me that needs to be clued in. I misread your email; the example above has nothing to do with Rpad. And for windows users, satisfying R and firefox (for instance) seems to require htmlFile = file.path(tempdir(), "tmp.html") and browseURL(paste("file://", htmlFile, sep="")) Martin > > Please clue me in. > > Regards, > > Tena Sakai > tsa...@gallo.ucsf.edu > > > -----Original Message----- > From: Martin Morgan [mailto:mtmor...@fhcrc.org] > Sent: Wed 4/29/2009 10:32 AM > To: Tena Sakai > Cc: ted.hard...@manchester.ac.uk; r-help@r-project.org > Subject: Re: [R] 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 >> tsa...@gallo.ucsf.edu >> >> >> -----Original Message----- >> From: ted.hard...@manchester.ac.uk [mailto:ted.hard...@manchester.ac.uk] >> Sent: Tue 4/28/2009 2:11 PM >> To: r-help@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 >>> tsa...@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.hard...@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@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. > > [[alternative HTML version deleted]] ______________________________________________ R-help@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.