Toby.Patterson@csiro.au
2004-Apr-16 01:32 UTC
[R] Turning windows screen buffering on and off
All, Does anyone know if there is an option I can set to turn screen-buffered output on and off with the win32 rgui? (Apart from the point and click method). I am running some simulations where it is useful to watch output but it gets mildly tiresome having to manually switch things on and off via the gui. Thanks Toby.> version_ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 1 minor 8.1 year 2003 month 11 day 21 language R
Ctrl-W. -roger Toby.Patterson at csiro.au wrote:> All, > > Does anyone know if there is an option I can set to turn screen-buffered > output on and off with the win32 rgui? (Apart from the point and click > method). > > I am running some simulations where it is useful to watch output but it > gets mildly tiresome having to manually switch things on and off via the > gui. > > Thanks > > Toby. > > >>version > > _ > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major 1 > minor 8.1 > year 2003 > month 11 > day 21 > language R > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >
Toby.Patterson@csiro.au
2004-Apr-16 04:38 UTC
[R] Turning windows screen buffering on and off
I meant via a function or something like: options( buffered.output = FALSE) Sorry, I should have made that clearer. Cheers Toby -----Original Message----- From: Roger D. Peng [mailto:rpeng at jhsph.edu] Sent: Friday, April 16, 2004 1:11 PM To: Patterson, Toby (Marine, Hobart) Cc: R-help at stat.math.ethz.ch Subject: Re: [R] Turning windows screen buffering on and off Ctrl-W. -roger Toby.Patterson at csiro.au wrote:> All, > > Does anyone know if there is an option I can set to turnscreen-buffered> output on and off with the win32 rgui? (Apart from the point and click > method). > > I am running some simulations where it is useful to watch output butit> gets mildly tiresome having to manually switch things on and off viathe> gui. > > Thanks > > Toby. > > >>version > > _ > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major 1 > minor 8.1 > year 2003 > month 11 > day 21 > language R > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide!http://www.R-project.org/posting-guide.html>
No, and options() really is part of the R/S language not the interface. See the rw-FAQ Q6.3 for how to manage the buffering more effectively. (Hint: you need to put calls to flush.console() in your code.) On Fri, 16 Apr 2004 Toby.Patterson at csiro.au wrote:> I meant via a function or something like: > > options( buffered.output = FALSE) > > Sorry, I should have made that clearer. > > Cheers > Toby > > > > -----Original Message----- > From: Roger D. Peng [mailto:rpeng at jhsph.edu] > Sent: Friday, April 16, 2004 1:11 PM > To: Patterson, Toby (Marine, Hobart) > Cc: R-help at stat.math.ethz.ch > Subject: Re: [R] Turning windows screen buffering on and off > > Ctrl-W. > > -roger > > Toby.Patterson at csiro.au wrote: > > All, > > > > Does anyone know if there is an option I can set to turn > screen-buffered > > output on and off with the win32 rgui? (Apart from the point and click > > method). > > > > I am running some simulations where it is useful to watch output but > it > > gets mildly tiresome having to manually switch things on and off via > the > > gui. > > > > Thanks > > > > Toby. > > > > > >>version > > > > _ > > platform i386-pc-mingw32 > > arch i386 > > os mingw32 > > system i386, mingw32 > > status > > major 1 > > minor 8.1 > > year 2003 > > month 11 > > day 21 > > language R > > > > ______________________________________________ > > R-help at stat.math.ethz.ch mailing list > > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > >-- 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
You can use flush.console() in your code wherever you want to print the output immediatelly on screen in Rgui, even if it is in buffered output mode. This is the most flexible option, because you decide exactly when to update the output screen. Best, Philippe Grosjean -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Toby.Patterson at csiro.au Sent: Friday, 16 April, 2004 06:38 To: R-help at stat.math.ethz.ch Subject: RE: [R] Turning windows screen buffering on and off I meant via a function or something like: options( buffered.output = FALSE) Sorry, I should have made that clearer. Cheers Toby -----Original Message----- From: Roger D. Peng [mailto:rpeng at jhsph.edu] Sent: Friday, April 16, 2004 1:11 PM To: Patterson, Toby (Marine, Hobart) Cc: R-help at stat.math.ethz.ch Subject: Re: [R] Turning windows screen buffering on and off Ctrl-W. -roger Toby.Patterson at csiro.au wrote:> All, > > Does anyone know if there is an option I can set to turnscreen-buffered> output on and off with the win32 rgui? (Apart from the point and click > method). > > I am running some simulations where it is useful to watch output butit> gets mildly tiresome having to manually switch things on and off viathe> gui. > > Thanks > > Toby. > > >>version > > _ > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major 1 > minor 8.1 > year 2003 > month 11 > day 21 > language R > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide!http://www.R-project.org/posting-guide.html>______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> From: Prof Brian Ripley > > No, and options() really is part of the R/S language not the > interface. > > See the rw-FAQ Q6.3 for how to manage the buffering more effectively. > (Hint: you need to put calls to flush.console() in your code.)Doesn't that only work for output at the R level? I.e., if the output is coming solely from compiled code, my impression is that flush.console() won't help. Am I mistaken? Is it possible to make it an option in Edit / GUI preferences? Best, Andy> On Fri, 16 Apr 2004 Toby.Patterson at csiro.au wrote: > > > I meant via a function or something like: > > > > options( buffered.output = FALSE) > > > > Sorry, I should have made that clearer. > > > > Cheers > > Toby > > > > > > > > -----Original Message----- > > From: Roger D. Peng [mailto:rpeng at jhsph.edu] > > Sent: Friday, April 16, 2004 1:11 PM > > To: Patterson, Toby (Marine, Hobart) > > Cc: R-help at stat.math.ethz.ch > > Subject: Re: [R] Turning windows screen buffering on and off > > > > Ctrl-W. > > > > -roger > > > > Toby.Patterson at csiro.au wrote: > > > All, > > > > > > Does anyone know if there is an option I can set to turn > > screen-buffered > > > output on and off with the win32 rgui? (Apart from the > point and click > > > method). > > > > > > I am running some simulations where it is useful to watch > output but > > it > > > gets mildly tiresome having to manually switch things on > and off via > > the > > > gui. > > > > > > Thanks > > > > > > Toby. > > > > > > > > >>version > > > > > > _ > > > platform i386-pc-mingw32 > > > arch i386 > > > os mingw32 > > > system i386, mingw32 > > > status > > > major 1 > > > minor 8.1 > > > year 2003 > > > month 11 > > > day 21 > > > language R > > > > > > ______________________________________________ > > > R-help at stat.math.ethz.ch mailing list > > > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > > > PLEASE do read the posting guide! > > http://www.R-project.org/posting-guide.html > > > > > > > ______________________________________________ > > R-help at stat.math.ethz.ch mailing list > > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > > > > > -- > 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 at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >
Benjamin.STABLER@odot.state.or.us
2004-Apr-16 16:09 UTC
[R] Turning windows screen buffering on and off
Well, I too would like to be able to set buffered output to false for Rgui Windows without user intervention. Maybe it could be set via the Edit -> Gui Preferences so that it can be saved and set at startup. The GUI Preferences are part of the interface and not the standard language definition right?...so that seems to be a good spot to set something like that. Benjamin Stabler Transportation Planning Analysis Unit Oregon Department of Transportation 555 13th Street NE, Suite 2 Salem, OR 97301 Ph: 503-986-4104 --------------------------------- Message: 75 Date: Fri, 16 Apr 2004 08:59:43 +0100 (BST) From: Prof Brian Ripley <ripley at stats.ox.ac.uk> Subject: RE: [R] Turning windows screen buffering on and off To: <Toby.Patterson at csiro.au> Cc: R-help at stat.math.ethz.ch Message-ID: <Pine.GSO.4.31.0404160852270.16317-100000 at toucan.stats> Content-Type: TEXT/PLAIN; charset=US-ASCII No, and options() really is part of the R/S language not the interface. See the rw-FAQ Q6.3 for how to manage the buffering more effectively. (Hint: you need to put calls to flush.console() in your code.) On Fri, 16 Apr 2004 Toby.Patterson at csiro.au wrote:> I meant via a function or something like: > > options( buffered.output = FALSE) > > Sorry, I should have made that clearer. > > Cheers > Toby > > > > -----Original Message----- > From: Roger D. Peng [mailto:rpeng at jhsph.edu] > Sent: Friday, April 16, 2004 1:11 PM > To: Patterson, Toby (Marine, Hobart) > Cc: R-help at stat.math.ethz.ch > Subject: Re: [R] Turning windows screen buffering on and off > > Ctrl-W. > > -roger > > Toby.Patterson at csiro.au wrote: > > All, > > > > Does anyone know if there is an option I can set to turn > screen-buffered > > output on and off with the win32 rgui? (Apart from the point and click > > method). > > > > I am running some simulations where it is useful to watch output but > it > > gets mildly tiresome having to manually switch things on and off via > the > > gui. > > > > Thanks > > > > Toby. > > > > > >>version > > > > _ > > platform i386-pc-mingw32 > > arch i386 > > os mingw32 > > system i386, mingw32 > > status > > major 1 > > minor 8.1 > > year 2003 > > month 11 > > day 21 > > language R > > > > ______________________________________________ > > R-help at stat.math.ethz.ch mailing list > > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide!http://www.R-project.org/posting-guide.html> >-- 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
The buffered output is a nice thing, and if the user want to use it, then fine! However, it should be nice to know if it is set ON or OFF, and to temporarily change it for some outputs in R scripts. I think this is the primary request. Then, your request appears to me as a secondary one: to set buffered output ON or OFF at statup of Rgui (by defining it in the preference panel). Personnally, I would really like to have both. Best, Philippe Grosjean .......................................................<??}))><.... ) ) ) ) ) ( ( ( ( ( Prof. Philippe Grosjean \ ___ ) \/ECO\ ( Numerical Ecology of Aquatic Systems /\___/ ) Mons-Hainaut University, Pentagone / ___ /( 8, Av. du Champ de Mars, 7000 Mons, Belgium /NUM\/ ) \___/\ ( phone: + 32.65.37.34.97, fax: + 32.65.37.33.12 \ ) email: Philippe.Grosjean at umh.ac.be ) ) ) ) ) SciViews project coordinator (http://www.sciviews.org) ( ( ( ( ( ................................................................... -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Benjamin.STABLER at odot.state.or.us Sent: Friday, 16 April, 2004 18:09 To: R-help at stat.math.ethz.ch Subject: RE: [R] Turning windows screen buffering on and off Well, I too would like to be able to set buffered output to false for Rgui Windows without user intervention. Maybe it could be set via the Edit -> Gui Preferences so that it can be saved and set at startup. The GUI Preferences are part of the interface and not the standard language definition right?...so that seems to be a good spot to set something like that. Benjamin Stabler Transportation Planning Analysis Unit Oregon Department of Transportation 555 13th Street NE, Suite 2 Salem, OR 97301 Ph: 503-986-4104 --------------------------------- Message: 75 Date: Fri, 16 Apr 2004 08:59:43 +0100 (BST) From: Prof Brian Ripley <ripley at stats.ox.ac.uk> Subject: RE: [R] Turning windows screen buffering on and off To: <Toby.Patterson at csiro.au> Cc: R-help at stat.math.ethz.ch Message-ID: <Pine.GSO.4.31.0404160852270.16317-100000 at toucan.stats> Content-Type: TEXT/PLAIN; charset=US-ASCII No, and options() really is part of the R/S language not the interface. See the rw-FAQ Q6.3 for how to manage the buffering more effectively. (Hint: you need to put calls to flush.console() in your code.) On Fri, 16 Apr 2004 Toby.Patterson at csiro.au wrote:> I meant via a function or something like: > > options( buffered.output = FALSE) > > Sorry, I should have made that clearer. > > Cheers > Toby > > > > -----Original Message----- > From: Roger D. Peng [mailto:rpeng at jhsph.edu] > Sent: Friday, April 16, 2004 1:11 PM > To: Patterson, Toby (Marine, Hobart) > Cc: R-help at stat.math.ethz.ch > Subject: Re: [R] Turning windows screen buffering on and off > > Ctrl-W. > > -roger > > Toby.Patterson at csiro.au wrote: > > All, > > > > Does anyone know if there is an option I can set to turn > screen-buffered > > output on and off with the win32 rgui? (Apart from the point and click > > method). > > > > I am running some simulations where it is useful to watch output but > it > > gets mildly tiresome having to manually switch things on and off via > the > > gui. > > > > Thanks > > > > Toby. > > > > > >>version > > > > _ > > platform i386-pc-mingw32 > > arch i386 > > os mingw32 > > system i386, mingw32 > > status > > major 1 > > minor 8.1 > > year 2003 > > month 11 > > day 21 > > language R > > > > ______________________________________________ > > R-help at stat.math.ethz.ch mailing list > > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide!http://www.R-project.org/posting-guide.html> >-- 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 at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html