【问题标题】:Graphics error: Plot rendering error in Rstudio server 0.99图形错误:在 Rstudio 服务器 0.99 中绘制渲染错误
【发布时间】:2017-07-19 14:43:28
【问题描述】:

我工作的集群中安装的 Rstudio 服务器出现问题。服务器上个月停止工作,我不得不重新启动它,但现在,我们无法使用此软件创建绘图。

当我们尝试创建如下图时:

x <- c(0,1,2,3,4,5)

y <- x

plot(x,y) #This is just an example

返回:

Error in .Call(.rs.routines$rs_createGD) : first argument must be a string (of length 1) or native symbol reference

这不是 R 本身的问题,因为我可以使用命令行版本创建绘图。 我试图在任何地方找到这个问题的答案...... 有什么建议吗?

【问题讨论】:

  • 使用&lt;- 代替-&gt;?
  • 输入错误,抱歉。
  • 我们在 0.99.491 遇到了同样的问题

标签: r plot rstudio


【解决方案1】:

我不确定这是否对您有帮助。我们刚刚升级到 R 版本 3.4.0 (2017-04-21) -- “你愚蠢的黑暗” w/ RStudio 版本 0.99.491。由于遇到与您上面提到的完全相同的错误而进行了大量测试后,我终于能够在 RStudio 界面中创建一个新项目后发出警告 --

sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux Server release 6.6 (Santiago)

Matrix products: default
BLAS: /usr/lib64/R/lib/libRblas.so
LAPACK: /usr/lib64/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

loaded via a namespace (and not attached):
[1] compiler_3.4.0 tools_3.4.0   
Warning message:
R graphics engine version 12 is not supported by this version of RStudio. The Plots tab will be disabled until a newer version of RStudio is installed.

升级到 RStudio 版本 1.0.143 后,我们可以毫无问题地使用 RStudio。

【讨论】:

    猜你喜欢
    • 2017-04-10
    • 1970-01-01
    • 2019-05-30
    • 2015-04-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-02
    • 1970-01-01
    相关资源
    最近更新 更多