This is a test version of Biostars. For the public version, visit https://www.biostars.org.
saving png images and X11

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.

 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

png x11

Do you have X11 installed...?

Yes, X11 is installed. I am sorry for cross-posting, it is an urgent matter for me these minutes.

What do you see for X11 and cairo when doing capabilities() from within R?

> capabilities()
       jpeg         png        tiff       tcltk         X11        aqua
       TRUE        TRUE        TRUE        TRUE        TRUE       FALSE
   http/ftp     sockets      libxml        fifo      cledit       iconv
       TRUE        TRUE        TRUE        TRUE        TRUE        TRUE
        NLS       Rprof     profmem       cairo         ICU long.double
       TRUE        TRUE       FALSE        TRUE        TRUE        TRUE
    libcurl
       TRUE

0 answers

No answers yet.

Log in to answer this question.