簡體   English   中英

Ghostscript PostScriptTrace相關問題

[英]Ghostscript PostScriptTrace related issue

當我運行下面給出的R腳本時 ,我得到如下R腳本所示的錯誤消息 該R腳本曾經可以在筆記本電腦上使用,但是在重新成像筆記本電腦后停止了工作。 但是,當我運行腳本時,會在工作目錄中創建空白的capturefile1cf05291409.ps文件。 我不明白筆記本電腦上缺少什么文件/文件夾。 請求幫助以解決此問題。

R腳本:

library(motifStack)
pcm<-matrix(runif(40,0,100),nrow=4,ncol=10)
pfm<-pcm2pfm(pcm)
rownames(pfm)<-c("A","C","G","T")
motif <- new("pfm", mat=pfm, name="bin_SOLEXA")
plotMotifLogoA(motif)

錯誤消息:

Error in PostScriptTrace(paste(psfilename, ".ps", sep = ""), paste(psfilename,  : 
status 127 in running command 'C:\Program Files\gs\gs9.18\bin\gswin32c.exe -q -dBATCH -dNOPAUSE -sDEVICE=ps2write -sOutputFile=C:\Users\Tester\AppData\Local\Temp\RtmpOgouvO\filed84397732a4 -sstdout=C:/Users/Tester/AppData/Local/Temp/RtmpOgouvO/filed844684128f.xml capturefiled844684128f.ps'
In addition: Warning message:
running command 'C:\Program Files\gs\gs9.18\bin\gswin32c.exe -q -dBATCH -dNOPAUSE -sDEVICE=ps2write -sOutputFile=C:\Users\Tester\AppData\Local\Temp\RtmpOgouvO\filed84397732a4 -sstdout=C:/Users/Tester/AppData/Local/Temp/RtmpOgouvO/filed844684128f.xml capturefiled844684128f.ps' had status 127

sessionInfo():

R version 3.3.2 (2016-10-31)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats4    parallel  grid      stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] DT_0.2              stringr_1.1.0       ape_4.0             msa_1.6.0           bio3d_2.3-1        
[6] seqinr_3.3-3        shiny_0.14.2        motifStack_1.18.0   Biostrings_2.42.1   XVector_0.14.0     
[11] IRanges_2.8.1       S4Vectors_0.12.1    ade4_1.7-5          MotIV_1.30.0        BiocGenerics_0.20.0
[16] grImport_0.9-0      XML_3.98-1.5       

loaded via a namespace (and not attached):
[1] Rsamtools_1.26.1           zlibbioc_1.20.0            bitops_1.0-6              
[4] SummarizedExperiment_1.4.0 lattice_0.20-34            rtracklayer_1.34.1        
[7] htmlwidgets_0.8            GenomicAlignments_1.10.0   GenomicRanges_1.26.1      
[10] xtable_1.8-2               BSgenome_1.42.0            Biobase_2.34.0            
[13] seqLogo_1.40.0             Rcpp_0.12.8                plyr_1.8.4                
[16] tools_3.3.2                RCurl_1.95-4.8             BiocParallel_1.8.1        
[19] nlme_3.1-128               R6_2.2.0                   scales_0.4.1              
[22] digest_0.6.10              mime_0.5                   Matrix_1.2-7.1            
[25] stringi_1.1.2              htmltools_0.3.5            munsell_0.4.3             
[28] rGADEM_2.22.0              colorspace_1.3-2           httpuv_1.3.3              
[31] GenomeInfoDb_1.10.2        magrittr_1.5               yaml_2.1.14               
[34] jsonlite_1.2

在此處輸入圖片說明

您的R解釋器試圖從“ C:\\ program files \\ gs \\ gs9.09 \\ bin”運行Ghostscript,而Windows命令行正在執行Ghostscript 9.18。

假設您已安裝Ghostscript的較新版本(使用安裝程序),這意味着Ghostscript將安裝在“ C:\\ program files \\ gs \\ gs9.18 \\ bin”中。

您應該檢查是否安裝了Ghostscript 9.09。 如果沒有,那么您將需要更新R配置以使用GS 9.18的正確目錄。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM