On headless machines like cluster computing environment, default png command expects X11 device and throws following error:
png
Running ROSE_main.py with required arguments gives following error:
ROSE_main.py
> 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`
Replace libpng device requirement with cairo device in line 166 of file: ROSE_callSuper.R
libpng
cairo
png(filename=plotFileName,height=600,width=600, type="cairo")
END
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 withcairo
device in line 166 of file: ROSE_callSuper.Rpng(filename=plotFileName,height=600,width=600, type="cairo")
END