Hi! Is it possible to set a file to which both commands and output would get automatically saved? I've tried with sink(), but only get the output. I mean something like a combined history and sink, as you get with File/Save to File.. in the windows GUI. Tis is done with diary filename in Matlab, and you can state diary on and diary off to control what is being saved to the file. Thanks Agus -- Dr. Agustin Lobo Institut de Ciencies de la Terra "Jaume Almera" (CSIC) LLuis Sole Sabaris s/n 08028 Barcelona Spain Tel. 34 934095410 Fax. 34 934110012 email: Agustin.Lobo at ija.csic.es http://www.ija.csic.es/gt/obster
The R2HTML package has tools for creating an HTML log of your session (see ?HTMLStart). Or the TeachingDemos package has a text based set of tools (see ?txtStart) for creating a log of your session. Neither is perfect (and imperfect in different ways), but could be what you are looking for. Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org (801) 408-8111> -----Original Message----- > From: r-help-bounces at r-project.org > [mailto:r-help-bounces at r-project.org] On Behalf Of Agustin Lobo > Sent: Monday, May 19, 2008 1:24 AM > To: r-help at r-project.org > Subject: [R] Log or diary file > > Hi! > > Is it possible to set a file to which both commands and > output would get automatically saved? I've tried with sink(), > but only get the output. I mean something like a combined > history and sink, as you get with File/Save to File.. in the > windows GUI. > Tis is done with diary filename in Matlab, and you can state > diary on and diary off to control what is being saved to the file. > > Thanks > > Agus > > > > -- > Dr. Agustin Lobo > Institut de Ciencies de la Terra "Jaume Almera" (CSIC) LLuis > Sole Sabaris s/n > 08028 Barcelona > Spain > Tel. 34 934095410 > Fax. 34 934110012 > email: Agustin.Lobo at ija.csic.es > http://www.ija.csic.es/gt/obster > > ______________________________________________ > 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. >
Agustin, Given this message and your previous one about starting R by clicking on the .RData file, I would suggest/recommend you have a look at the Emacs + ESS combination; see http://cran.r-project.org/doc/FAQ/R-FAQ.html#R-and-Emacs In my opinion, this is the best multi-platform (Unix, MacOS, Windows) user interface you will find for R. HTH Vincent Le lun. 19 mai ? 03:24, Agustin Lobo a ?crit :> Hi! > > Is it possible to set a file to which both > commands and output would get automatically > saved? I've tried with sink(), but only get > the output. I mean something > like a combined history and sink, as you > get with File/Save to File.. in the windows > GUI. > Tis is done with diary filename in Matlab, > and you can state diary on and > diary off to control what is being saved to > the file. > > Thanks > > Agus > > > > -- > Dr. Agustin Lobo > Institut de Ciencies de la Terra "Jaume Almera" (CSIC) > LLuis Sole Sabaris s/n > 08028 Barcelona > Spain > Tel. 34 934095410 > Fax. 34 934110012 > email: Agustin.Lobo at ija.csic.es > http://www.ija.csic.es/gt/obster > > ______________________________________________ > 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.