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
Dirk Eddelbuettel
2004-Jun-20 22:59 UTC
[Rd] regarding saving R graphis images directly to directory
On Sun, Jun 20, 2004 at 01:18:47PM -0700, SAURIN wrote:> 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.Use either a 'virtual' X11 display (such as the xvfb server) to provide a X11 display even though you don't have a terminal, or the bitmap() device, which needs ghostscript installed. Hth, Dirk -- FEATURE: VW Beetle license plate in California
Vadim Ogranovich
2004-Jun-21 00:23 UTC
[Rd] regarding saving R graphis images directly to directory
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@stat.math.ethz.ch > [mailto:r-devel-bounces@stat.math.ethz.ch] On Behalf Of SAURIN > Sent: Sunday, June 20, 2004 1:19 PM > To: r-devel@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@stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-devel > >