【问题标题】:RStudio crashes with call to getURL in RCurlRStudio 在调用 RCurl 中的 getURL 时崩溃
【发布时间】:2015-07-15 05:47:32
【问题描述】:

我在 Mac OS 10.10.3 上使用带有 RStudio (0.98.1103) 的最新稳定版 R (3.2.0)。

当从 RCurl 包调用 getURL 时,RStudio 会因致命错误而终止。

不会在从命令行使用 R 时发生,仅在 RStudio 中。

library("RCurl")
getURL("http://www.omegahat.org/RCurl/")

library("RCurl") 之后检查sessionInfo()system.file().libPaths() 的输出确实让我相信我在这两种情况下都使用了相同版本的R 和RCurl。

从命令行执行 R:

> library("RCurl")
Loading required package: bitops
> sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.3 (Yosemite)

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

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

other attached packages:
[1] RCurl_1.95-4.6 bitops_1.0-6  
> system.file()
[1] "/Library/Frameworks/R.framework/Resources/library/base"
> .libPaths()
[1] "/Library/Frameworks/R.framework/Versions/3.2/Resources/library"

然后从 RStudio 内部:

> library("RCurl")
Loading required package: bitops
> sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.3 (Yosemite)

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

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

other attached packages:
[1] RCurl_1.95-4.6 bitops_1.0-6  

loaded via a namespace (and not attached):
[1] tools_3.2.0
> system.file()
[1] "/Library/Frameworks/R.framework/Resources/library/base"
> .libPaths()
[1] "/Library/Frameworks/R.framework/Versions/3.2/Resources/library"

非常感谢任何帮助。

【问题讨论】:

  • sessionInfo()system.file().libPaths() 在 library(RCurl) 之后的输出是否会让您相信您在两种情况下使用的是相同版本的 R 和 RCurl?
  • 谢谢马丁。是的,请参见上文。我应该补充一点,这在 Linux 上不会发生,并且仅在将我的 Mac OS 升级到 Yosemite 并将我的 R 升级到最新版本之后发生。
  • 这听起来像是 RStudio 支持的问题。

标签: r rstudio osx-yosemite rcurl


【解决方案1】:

升级到 Mac OS 10.10.5、RStudio 版本 0.99.489 和最新的 R 3.2.3 后似乎已解决此问题

【讨论】:

    猜你喜欢
    • 2015-10-08
    • 2016-04-11
    • 2019-04-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-20
    相关资源
    最近更新 更多