简体   繁体   English

R 3.1.1中的RCurl安装:软件包“ RCurl”不可用(对于R版本3.1.1)?

[英]RCurl Installation in R 3.1.1: package 'RCurl' is not available (for R version 3.1.1)?

It says in Cran that RCurl should be for R >3.0.0 but R 3.1.1 in Debian Jessie fires the error: 它在Cran中说RCurl应该用于R> 3.0.0,但是Debian Jessie中的R 3.1.1会引发错误:

package 'RCurl' is not available (for R version 3)

the same problem with rjson. rjson同样的问题。 The dependencies are libcurl and make that are installed. 依赖项是libcurl并已安装。 What is the problem with R 3.1.1 in installing the libcurl packages such as RCurl? R 3.1.1在安装libcurl软件包(例如RCurl)时有什么问题? How to overcome this the most convenient way? 如何克服这个最方便的方法?

Ps I know this thread but any method did not solve this issue. 附言:我知道这个线程,但是任何方法都不能解决这个问题。

Apt-get install the 3.1.1 R version by default, for example in Debian Jessie. 默认情况下,例如在Debian Jessie中,Apt-get安装3.1.1 R版本。 We can either install the newest version of R with the newest RCurl or install the archived version of RCurl working in R 3.1.1. 我们可以使用最新的RCurl安装R的最新版本,也可以安装在R 3.1.1中运行的RCurl的存档版本。

Solution A 解决方案A

You can install the newest version, source , such that 您可以安装最新版本source ,例如

sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/debian jessie-cran3/" >> /etc/apt/sources.list'

sudo apt-key adv --keyserver subkeys.pgp.net --recv-key 381BA480

sudo apt-get update

sudo apt-get install r-base r-base-dev

and now you can install RCurl in R, working in R 3.3.2. 现在您可以在R 3.3.2中使用R安装RCurl。

Solution B 解决方案B

Install the Curl from the CRAN Archieves matching the 3.1.1 R, apparently this here as suggested by Imo in the comment. 安装从CRAN Archieves匹配3.1.1 R上的卷曲,显然这在这里由伊莫在注释建议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM