Re: [R] jpeg in batch mode

From: Elizabeth Purdom <epurdom_at_stat.berkeley.edu>
Date: Wed, 27 Feb 2008 10:13:51 -0800

Thanks for the quick reply and sorry that I didn't see the documentation that could help me. I actually didn't see anything on the jpeg() help pages, or didn't recognize what was there as relating to my problem. I will look further on the archives if this plus Henrik's reply is not enough. Best,
Elizabeth

Prof Brian Ripley wrote:
> Well, this is documented and there are solutions even on the jpeg() help
> page and mamy more in the archives. Basically
>
> 1) Use a Xvfb X server
> 2) Use bitmap()
> 3) Use an alternative such as GDD or Cairo (but for me those do a poor
> job on symbol fonts).
>
> The good news is that R 2.7.0 will have a better solution, producing
> JPEGs without using X11.
>
>
>>
>> R-2.6.0, GNU/Linux
>>
>> Thanks,
>> Elizabeth
>>
>> My caveat from above about the jpeg working as long as I'm signed on:
>> one time I got the mysterious error:
>> >
>> jpeg("~/batch5Effect/ProbPbsets_summaryHeatmaps%03d.jpeg",height=1200,width=800)
>>
>> Error in jpeg("~/batch5Effect/ProbPbsets_summaryHeatmaps%03d.jpeg",
>> height = 1200, :
>> X11 fatal IO error: please save work and shut down R
>>
>> Even though it had just correctly done this same basic command a few
>> lines back. I redid it (without changing anything that I was aware of)
>> and it worked fine. So I don't think it's related.
>
> That's an X11 problem, not an R problem.
>
>> ______________________________________________
>> R-help_at_r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 27 Feb 2008 - 22:40:06 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 27 Feb 2008 - 23:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive