我在Mac OS 10.10.3上使用R(3.2.0)和RStudio(0.98.1103)的最新稳定版本。
从
python scripts/mk_make.py --ml
cd build
make
sudo make install
sudo make ocamlfind_install
包调用getURL
时,RStudio会因致命错误而终止。
从命令行使用R时,只有在RStudio中才会发生 。
RCurl
在library("RCurl")
getURL("http://www.omegahat.org/RCurl/")
之后检查sessionInfo()
,system.file()
和.libPaths()
的输出确实让我相信我在两种情况下都使用相同版本的R和RCurl
从命令行执行R:
library("RCurl")
然后从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
> system.file()
[1] "/Library/Frameworks/R.framework/Resources/library/base"
> .libPaths()
[1] "/Library/Frameworks/R.framework/Versions/3.2/Resources/library"
非常感谢任何帮助。
答案 0 :(得分:1)
这似乎已经通过升级到Mac OS 10.10.5,RStudio版本0.99.489和最新的R 3.2.3来解决。