Thank you for bringing your thread to my attention. The discussion therein pretty much encapsulated what I was trying to find out.
-- TMK -- 212-460-5430 home 917-656-5351 cell >From: "Muenchen, Robert A (Bob)" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >CC: "Talbot Katz" <[EMAIL PROTECTED]> >Subject: RE: [R] "Save to File..." option on File menu >Date: Wed, 12 Sep 2007 19:03:38 -0400 > >Hi Talbot, > >I just had that question a couple of weeks ago. Here's the thread: > >RSiteSearch("Saving results from Linux command line") > >Thomas Lumley concluded with: > >There could still be functions that divert a copy of all the output to a >file, for example. And indeed there are. > >sink("transcript.txt", split=TRUE) > >And you're right, you do this at the start, or put it in your .Rprofile >so you don't have to remember it each time. The UNIX tee command does >this as well. > >Cheers, >Bob > >========================================================= >Bob Muenchen (pronounced Min'-chen), Manager >Statistical Consulting Center >U of TN Office of Information Technology >200 Stokely Management Center, Knoxville, TN 37996-0520 >Voice: (865) 974-5230 >FAX: (865) 974-4810 >Email: [EMAIL PROTECTED] >Web: http://oit.utk.edu/scc, >News: http://listserv.utk.edu/archives/statnews.html >========================================================= > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > project.org] On Behalf Of Talbot Katz > > Sent: Wednesday, September 12, 2007 3:05 PM > > To: [EMAIL PROTECTED] > > Subject: [R] "Save to File..." option on File menu > > > > Hi. > > > > There was an interesting thread about a year ago, called 'Command > > equivalent of rgui "File, Save to File"?' > > (http://tolstoy.newcastle.edu.au/R/e2/help/06/09/0553.html) started by > > Michael Prager, and contributed to by Duncan Murdoch (I didn't notice > > anything beyond the four entries they posted). The question was how >to > > replicate programmatically the "Save to File..." option on the File > > menu. > > The closest answers given involved either running in batch or using >the > > sink() command. Perhaps I don't understand the sink() command well > > enough, > > but it appears to me that you have to set it up before you run > > commands, and > > that it can't be used to save command output from commands that were > > already > > run; am I right about this? Whereas the "Save to File..." command > > scoops up > > everything that's still in the console. Here is my problem. I am > > running R > > on Linux in a VNC window. I'd like to save my console output, but > > there > > doesn't appear to be a File menu available and I didn't start out with > > the > > sink() command. Is there any way to replicate "Save to File..." in > > this > > situation? Thanks! > > > > -- TMK -- > > 212-460-5430 home > > 917-656-5351 cell > > > > ______________________________________________ > > 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. ______________________________________________ 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.