Re: [R] using R as a script; getting the output to display on screen

About this list Date view Thread view Subject view Author view Attachment view

From: Prof Brian D Ripley (ripley@stats.ox.ac.uk)
Date: Sat 28 Jun 2003 - 03:59:01 EST


Message-id: <Pine.WNT.4.44.0306271855430.3028-100000@petrel>

On Fri, 27 Jun 2003, Nick Helseth wrote:

So, you are using Windows: please say so up front.

> I'm trying to run R from the command line using a function as an input; it
> seems to run ok when I use "Rterm --vanilla < name_of_R_function.R" (by ok,
> I mean that it will say that it's reading in the correct items) but the
> graphics won't display on screen.

The default graphics device in non-interactive use is postscript().

> Do I need to explicitly define an output
> device? Like "Rterm --vanilla < name_of_R_function.R >
> standard_display_device"? If that is the case, I don't suppose anyone
> happens to know the name of the screen display device in Windows, do they?

Yes, lots of people do as it is in the README.RW1071: windows(). Just add
an explicit call to see graphics on-screen.

-- 
Brian D. Ripley,                  ripley@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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:12:09 EST