I am using R 1.9.0 (2004-04-12) for Mac OS X. I am having trouble
printing to a jpg file. This only happens when I use R in batch (with
the BATCH option) mode. If I launch the R GUI or the command line
version and run the script from either, I have no problems. Only when
running in BATCH mode I get a file with the same name as my script
where I find the following message at the end:
Error in jpeg(filename = file, width = 1500, height = 2000, pointsize
= 12, :
R_X11 module cannot be loaded
In addition: Warning message:
X11 module is not available under this GUI
Execution halted
When I run the same script with the only difference that it prints to
a postscript file instead, all works fine.
Any suggestions as to what could the problem be?