Re: [Rd] [R][Rdev] any way to generate "bitmap" (tif, jpeg, png etc) files in R CMD BATCH

From: Simon Urbanek <>
Date: Sat 26 Feb 2005 - 03:56:00 EST

On Feb 25, 2005, at 10:05 AM, Oleg Sklyar wrote:

> here is the problem, Linux problem (reported to work on Windows). I
> need to generate graphical output in any of bitmap format under the 'R
> CMD BATCH'. Whereas the script generating png-s works perfectly in the
> R session, such things as X11, png and jpeg are not usable in BATCH

There are other ways, but if you have (or can install) libgd and freetype, you may consider using the GDD device - it can produce jpeg, png and gif on unix w/o the need of X11. The nice thing about it is speed (it doesn't use any external process) and that it uses anti-aliasing of both text and lines. It was designed specifically for graphics-on-demand on web servers.

Currenly GDD is not on CRAN (yet), but you can get it from
Just make sure that you have libgd and freetype (if you any problems or suggestions, please drop me a line).

There are other methods, too, like the bitmap device, which uses gs (AFAICS), or you can run virtual X11 to satisfy the devices that require X11.

Simon mailing list Received on Sat Feb 26 04:01:15 2005

This archive was generated by hypermail 2.1.8 : Sat 26 Feb 2005 - 04:33:52 EST