[R] saving png images and X11

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Sat Feb 26 17:18:21 CET 2022


This is rather OS-dependent. You should read [1] and if if you need more help consider asking in one of the OS-specific mailing lists mentioned in the Posting Guide.

https://cran.r-project.org/doc/manuals/r-release/R-admin.html

On February 25, 2022 4:33:38 AM PST, Bogdan Tanasa <tanasa using gmail.com> wrote:
>Dear all,
>
>I am using a R package that renders the png images. As I am running the
>command below in a script, I would like to avoid the error below and still
>be able to save the images. How shall I do it ?
>
>> ChIPQCreport(SAMPLE, +              reportName = paste(ENTRY, "ChIPQC", sep="."), +              reportFolder = paste(ENTRY, "ChIPQCreport", sep="."))
>Saving 7 x 7 in image
>Error in png_dev(..., res = dpi, units = "in") : X11 is not available
>
>Shall I add the option :
>
>options(bitmapType='cairo')
>
>the png images are skipped and not saved on the disk. Thanks a lot,
>
>Bogdan
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>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.

-- 
Sent from my phone. Please excuse my brevity.



More information about the R-help mailing list