相关疑难解决方法(0)

install.packages中的错误:当在R控制台中工作时,无法使用StatET加载Internet例程

直到最近R升级后奇怪的事情才开始发生,我在Ubuntu 14.04上是一个快乐的StatET用户.与网络操作相关的任何内容都将失败 例如,我无法再从CRAN安装软件包:

> install.packages("Hmisc")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Error in url("http://cran.r-project.org/CRAN_mirrors.csv") : 
  internet routines cannot be loaded
In addition: Warning message:
In url("http://cran.r-project.org/CRAN_mirrors.csv") :
  unable to load shared object '/usr/lib/R/modules//internet.so':
  /usr/lib/R/modules//internet.so: symbol curl_multi_wait, version CURL_OPENSSL_3 not defined in file libcurl.so.4 with link time reference
Run Code Online (Sandbox Code Playgroud)

如果我在终端中运行R,它会顺利运行:

> install.packages("Hmisc")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'http://cran.at.r-project.org/src/contrib/Hmisc_3.16-0.tar.gz'
Content type 'application/x-gzip' length 629536 …
Run Code Online (Sandbox Code Playgroud)

r statet install.packages

15
推荐指数
1
解决办法
3418
查看次数

无法在CentOS中安装软件包:无法加载Internet例程

我在更新R后在CentOS上的R中安装软件包时遇到了一些麻烦.下面是我尝试在R中安装软件包时会发生什么的示例:

> install.packages("ggplot2")
Installing package into '/home/albers/R/x86_64-pc-linux-gnu-library/3.2'
(as 'lib' is unspecified)
--- Please select a CRAN mirror for use in this session ---
Error in download.file(url, destfile = f, quiet = TRUE) :
  internet routines cannot be loaded
In addition: Warning message:
In download.file(url, destfile = f, quiet = TRUE) :
  unable to load shared object '/usr/local/lib64/R/modules//internet.so':
  /usr/local/lib64/R/modules//internet.so: undefined symbol: curl_multi_wait
HTTPS CRAN mirror

 1: 0-Cloud [https]                2: Austria [https]
 3: Chile [https]                  4: China (Beijing 4) [https]
 5: Colombia …
Run Code Online (Sandbox Code Playgroud)

linux curl r centos install.packages

6
推荐指数
2
解决办法
4374
查看次数

警告:无法访问无法访问存储库Internet例程的索引

三天前,我可以在三个不同的系统上安装包没有任何问题.R在所有三个系统上重建(Gentoo强制重建),现在我无法从CRAN上下载和安装它们中的任何一个....

> install.packages('rmarkdown')
Warning: unable to access index for repository https://r-forge.r-project.org/src/contrib:
  internet routines cannot be loaded
Warning: unable to access index for repository https://cran.rstudio.com/src/contrib:
  internet routines cannot be loaded
Warning: unable to access index for repository https://cran.uk.r-project.org/src/contrib:
  internet routines cannot be loaded
Run Code Online (Sandbox Code Playgroud)

这是我定义的三个存储库.Rprofile......

## Set CRAN mirrors
local({r <- getOption("repos"); r["CRAN"] <- "https://cran.uk.r-project.org"; options(repos=r)})
options(repos=c(RStudio='https://rstudio.org/_packages', getOption('repos')))
options(repos=c(RStudio='https://cran.rstudio.com/', getOption('repos')))
Run Code Online (Sandbox Code Playgroud)

并获取完整信息..

> sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Gentoo/Linux

locale:
 [1] LC_CTYPE=en_GB.utf8       LC_NUMERIC=C             
 [3] LC_TIME=en_GB.utf8        LC_COLLATE=en_GB.utf8 …
Run Code Online (Sandbox Code Playgroud)

r

5
推荐指数
1
解决办法
3143
查看次数

标签 统计

r ×3

install.packages ×2

centos ×1

curl ×1

linux ×1

statet ×1