[Rd] regarding saving R graphis images directly to directory

Vadim Ogranovich vograno at evafunds.com
Mon Jun 21 00:22:41 CEST 2004

If you just need to ignore the errors use try or tryCatch around the
plotting functions.

Re: jpeg and friends. R has a notion of current device where it sends
all its graphics. If none is open R opens the default device for you,
which happens to be X11 on your system. To use a different device just
open it, say jpeg, and all graphics will go there until you close it or
open yet another device. For the list of available devices see ?Devices

It might be useful to have a null device which just silently ignores all
graphics (aka /dev/null on UNIX), but I don't know if R has anything
like this.

P.S. This sort of questions looks more appropriate for r-help. Just
personal sensing, I am no master of polices.

> -----Original Message-----
> From: r-devel-bounces at stat.math.ethz.ch 
> [mailto:r-devel-bounces at stat.math.ethz.ch] On Behalf Of SAURIN
> Sent: Sunday, June 20, 2004 1:19 PM
> To: r-devel at stat.math.ethz.ch
> Subject: [Rd] regarding saving R graphis images directly to directory
> Dear R,
> I am student at University of new haven, CT.I am trying to 
> run my R scripts where I don't have
> X11() authentication to my account. I run those R scripts and 
> when I generate any graphics I get error and it comes out 
> from system. 
> if possible , please let me know how can i run R scripts 
> ...so, that I just SAVE BOX PLOT or HISTOGRAM jpeg or png 
> files to current directory without poping up on screen or 
> without using any devices or make them silent..or something.
> Thakn you,
> Saurin Jnai
> ______________________________________________
> R-devel at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

More information about the R-devel mailing list