I'd like to log all console I/O for an entire session while maintaining normal console I/O. I'm working in Windows98, RGui, R1.1.1. The sink() function is not the answer since it diverts output from the console. In the RFAQ I see references to "...save the contents of the interaction buffer to a file..." and in the R-Help Archive "...just save the console output...". I guess I've missed something somewhere, so I'd appreciate it someone could tell me (a) how to save the contents of the interaction buffer, or (b) how to save the console output. Thanks for your help, Bill Woodard -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Further to W. T. Woodard's query: The natural solution would be to provide a function tee() with the same syntax as sink, whose effect was to divert output to a file but als? let the output appear at the screen. Bendix ---------------------- Bendix Carstensen Senior Statistician Steno Diabetes Centre Niels Steensens Vej 2 DK-2820 Gentofte Denmark tel: +45 44 43 87 38 mob: +45 28 25 87 38 fax: +45 44 43 73 13 bxc at novo.dk www.biostat.ku.dk/~bxc ----------------------> -----Original Message----- > From: W. T. Woodard [mailto:woodardw001 at hawaii.rr.com] > Sent: 21. november 2000 23:13 > To: r-help at lists.r-project.org > Subject: [R] Session logging in Windows98? > > > I'd like to log all console I/O for an entire session while > maintaining > normal console I/O. I'm working in Windows98, RGui, R1.1.1. The sink() > function is not the answer since it diverts output from the > console. In the > RFAQ I see references to "...save the contents of the > interaction buffer to > a file..." and in the R-Help Archive "...just save the > console output...". > I guess I've missed something somewhere, so I'd appreciate it > someone could > tell me (a) how to save the contents of the interaction > buffer, or (b) how > to save the console output. > > Thanks for your help, > > Bill Woodard > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > -.-.-.-.-.-.-.-.- > r-help mailing list -- Read > http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: > r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. > _._._._._._._._._ >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 21 Nov 2000, W. T. Woodard wrote:> I'd like to log all console I/O for an entire session while maintaining > normal console I/O. I'm working in Windows98, RGui, R1.1.1. The sink() > function is not the answer since it diverts output from the console. In the > RFAQ I see references to "...save the contents of the interaction buffer to > a file..." and in the R-Help Archive "...just save the console output...". > I guess I've missed something somewhere, so I'd appreciate it someone could > tell me (a) how to save the contents of the interaction buffer, or (b) how > to save the console output.With 1.1.1, use cut-and-paste. With 1.2.0 there will be a menu item to do so. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> -----Original Message----- > From: Prof Brian D Ripley [mailto:ripley at stats.ox.ac.uk] > Sent: 24. november 2000 08:30 > To: W. T. Woodard > Cc: r-help at stat.math.ethz.ch > Subject: Re: [R] Session logging in Windows98? > > > I despair of this! There is a Select All menu on the File | > Edit menu, > and on the console pop-up. This is absolutely standard > Windows behaviour, > as is the ability to drag a selection and the console scrolls. > > One point: the `interaction buffer' I presume means the console screen > buffer. That is of limited size, and the oldest history is purged if > necessary. You can only save what is left.I think Brian is missing what the point is here. When working on a dataset in R, an important result is a fairly short piece of R-code that will do what you want to be done, when submitted in batch. That will typically be of magnitude about 2-5% of the lines that you actually do on the console. Sitting at the console you will typically know, when the next 5 commands you recall and paste etc. is IT. So at that point you would like to switch a tee() on, perhaps even with the facility to write the total session to one file and only the commands to another. Correct Brian, we can choose the manual way and scroll up the screen after the five lines, grab the output and save it to a file. And we can choose to take the .Rhistory and remove 98% of its contents to get what we are after. Which is what we to now, but automation is a great thing, now that we have this computer sitting in front of us... Bendix> > On Thu, 23 Nov 2000, W. T. Woodard wrote: > > > The suggested cut-and-paste requires laborious multiple > > cut-and-pastes for long sessions extending over multiple screens. > > For the record, that's completely incorrect. > > > Will the new 1.2.0 menu item permit dumping the entire > > interaction buffer to the clipboard, or only a single screen? > > Neither. It will save the whole console buffer, or whatever is > highlighted, to a *file*. > > > On Wed, 22 Nov 2000, Prof Brian D Ripley wrote: > > >With 1.1.1, use cut-and-paste. With 1.2.0 there will be a > menu item to do > > >so. > > > > On Tue, 21 Nov 2000, W. T. Woodard wrote: > > > > > I'd like to log all console I/O for an entire session > while maintaining > > > normal console I/O. I'm working in Windows98, RGui, > R1.1.1. The sink() > > > function is not the answer since it diverts output from > the console. In > > the > > > RFAQ I see references to "...save the contents of the > interaction buffer > > to > > > a file..." and in the R-Help Archive "...just save the > console output...". > > > I guess I've missed something somewhere, so I'd > appreciate it someone > > could > > I think you missed the menus, although I find this incredible. > Now you know how to do cut-and-paste in Windows, I hope it will help > you use other applications too. > > > > tell me (a) how to save the contents of the interaction > buffer, or (b) how > > > to save the console output. >---------------------- Bendix Carstensen Senior Statistician Steno Diabetes Centre Niels Steensens Vej 2 DK-2820 Gentofte Denmark tel: +45 44 43 87 38 mob: +45 28 25 87 38 fax: +45 44 43 73 13 bxc at novo.dk www.biostat.ku.dk/~bxc ---------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> From: dmurdoch at pair.com (Duncan Murdoch) > To: Prof Brian D Ripley <ripley at stats.ox.ac.uk> > Cc: r-help at stat.math.ethz.ch > Subject: Re: [R] Session logging in Windows98? > Date: Fri, 24 Nov 2000 14:12:57 GMT > > On Fri, 24 Nov 2000 07:29:36 +0000 (GMT), Prof Brian D Ripley > <ripley at stats.ox.ac.uk> wrote: > > >One point: the `interaction buffer' I presume means the console screen > >buffer. That is of limited size, and the oldest history is purged if > >necessary. You can only save what is left. > > I thought I recalled that you can set the size of the history that is > kept, but I can't find how to do it now. Is this possible? If so, I > think the natural place to put it is in the "GUI preferences" dialog.For 1.2.0 it will be possible to set the size of the history buffer (it's in the CHANGES file) via an environment variable. It is not currently possible to set the size of the console screen buffer, and the way it works it is not as easy to alter it on the fly. I'll look into what might easily be possible.> BTW, that dialog doesn't work quite right with large fonts selected; I > lose the last letters of "MD?", "multiple windo??", "True Type onl?". > This is a pretty common problem with windows applications; I think the > simplest solution is to design with large fonts installed, then small > fonts just have extra space around them.That's known and I thought already fixed. I'll see if it has really been fixed on pre-1.2.0. There are limits to what you can do: at the magnification my father uses (150%) lots of things get truncated. I don't think it's much of an issue: the "GUI preferences" dialog merely interfaces some text files which you can edit. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._