tderrien / FEELnc

FEELnc : FlExible Extraction of LncRNA
GNU General Public License v3.0
79 stars 28 forks source link

Error in .External2(C_X11, paste0("png::", filename), g$width, g$height, :"unable to start device PNG. #21

Closed dengpingchuan closed 6 years ago

dengpingchuan commented 6 years ago

Hi Tderrien, There was one problem when running the ‘Coding_Potential‘ module, as follows: "Error in .External2(C_X11, paste0("png::", filename), g$width, g$height, :"unable to start device PNG. I have tried to generate png() but failed. Is there any solution to sovle this problem? such as skipping build png or replace png by pdf? Could you give any suggestion. Your reply will be appreciated!

tderrien commented 6 years ago

Dear Deng Pingchuan,

First of all, thank you for using our tool FEELnc. Regarding the issue you mentioned, it is more related to your X11 device rather than FEELnc (i.e if you manage to build whatever .png image using your R version, FEELnc will be running correctly). However, if you really need to build .pdf, you can directly replace png by pdf in the 2 R scripts from your FEELnc/utils directory:

30 outVar           <- paste(file_path_sans_ext(outFile), "_varImpPlot.pdf", sep="")
31 outROC           <- paste(file_path_sans_ext(outFile), "_TGROC.pdf", sep="")
214 pdf(outROC, h=800, w=800)
280 pdf(outVar, h=800, w=800)

HTH,

BEst,

Thomas

dengpingchuan commented 6 years ago

Dear Tderrien, I am appreciated for your kindly help. Now, the problem has been sovled following your suggestions.

Best, Pingchuan