[R] Several simple but hard tasks to do with R

Greg Snow Greg.Snow at imail.org
Thu Aug 20 19:26:13 CEST 2009

If you are using a pre created script file, then you may want to consider going one more step and creating a sweave file.  Then you can process this file and the results will include the commands (unless you suppress them) as well as the output, nicely formatted.  It can also include graphics and any commentary that you desire.

If you want the more live transcript/log approach, then the R2HTML package is one option (already mentioned) or the txtStart and related commands in the TeachingDemos package (a bit simpler than R2HTML and results in a text rather than html file).

Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Rakknar
> Sent: Thursday, August 20, 2009 9:00 AM
> To: r-help at r-project.org
> Subject: Re: [R] Several simple but hard tasks to do with R
> "To echo what others have said, it is often easier to write a script
> (in
> STATA terms, a "do" file) of commands and then "source" the script.
> When
> it runs to your satisfaction, usually not the first time for me, there
> are several ways to store the output. Both the R2HTML and prettyR
> packages contain methods to store output as HTML files. You can store
> both the commands and output in the same file."
> I already using script. I'm using Tinn-R to write them. Thanks for the
> recommendation of the R2HTML package I'll see how to use it right now.
> Thanks.
> "You can save one object at a time if you want, and do it during a
> script. I usually save the primary data object after I have translated
> it from whatever format it came to me. You can save subsets of the data
> as different files and simply use "load" to read in the data you want.
> "load" can also signal if the data is not there, albeit in a fairly
> messy way."
> Yes, I already know I can do things that way but it doesn't work for
> me: I
> want to be able to store several objects in one .Rdata file in a
> flexible
> and fast way. Writing one for each object seems too messy for me.
> --
> View this message in context: http://www.nabble.com/Several-simple-but-
> hard-tasks-to-do-with-R-tp25052563p25063776.html
> Sent from the R help mailing list archive at Nabble.com.
> 	[[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.

More information about the R-help mailing list