RStudio在RCurl中调用getURL时崩溃了

时间:2021-05-05 09:00:11

I am using the latest stable release of R (3.2.0) with RStudio (0.98.1103) on Mac OS 10.10.3.

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

When calling getURL from the RCurl package RStudio terminates with a fatal error.

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

This does not happen when using R from the command line, only in RStudio.

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

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

Checking the output of sessionInfo(), system.file(), and .libPaths() after library("RCurl") does indeed lead me to believe I am using the same version of R and RCurl in both scenarios.

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

Executing R from the command line:

从命令行执行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"

and then from inside RStudio:

然后从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"

Any help greatly appreciated.

任何帮助非常感谢。

1 个解决方案

#1


This seems to have been fixed with upgrading to Mac OS 10.10.5, RStudio Version 0.99.489 and the latest R 3.2.3

这似乎已经通过升级到Mac OS 10.10.5,RStudio版本0.99.489和最新的R 3.2.3得到修复

#1


This seems to have been fixed with upgrading to Mac OS 10.10.5, RStudio Version 0.99.489 and the latest R 3.2.3

这似乎已经通过升级到Mac OS 10.10.5,RStudio版本0.99.489和最新的R 3.2.3得到修复