Suggest fix for error: unable to start device PNG

Open
#1 · Created  · Last updated

Description

Suggest fix for error: unable to start device PNG

Reproduce error:

On headless machines like cluster computing environment, default png command expects X11 device and throws following error:

Running ROSE_main.py with required arguments gives following error:

> png(filename=plotFileName,height=600,width=600) Error in .External2(C_X11, paste("png::", filename, sep = ""), g$width, : unable to start device PNG Calls: png In addition: Warning message: In png(filename = plotFileName, height = 600, width = 600) : unable to open connection to X11 display '' Execution halted`

Suggested fix:

Replace libpng device requirement with cairo device in line 166 of file: ROSE_callSuper.R

png(filename=plotFileName,height=600,width=600, type="cairo")

END

0 attachments

0 comments

Loading commits...