首页 > 解决方案 > eval 中的错误(exprs[i],envir):找不到对象“confint.default”

问题描述

R包安装错误

17 年 7 月 3 日

install.packages()并且update.packages()都面临如下所示的错误:

Error in eval(exprs[i], envir) : object 'confint.default' not found
Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo tidyverse/tidyverse@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All                            
2: CRAN packages only             
3: None                           
4: stringi (1.6.2 -> 1.7.3) [CRAN]

Enter one or more numbers, or an empty line to skip updates: 1
stringi (1.6.2 -> 1.7.3) [CRAN]
Rcpp    (NA    -> 1.0.7) [CRAN]
isoband (NA    -> 0.2.5) [CRAN]
Skipping 1 packages ahead of CRAN: data.table
Installing 3 packages: stringi, Rcpp, isoband
Installing packages into ‘/usr/lib/R/library’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/stringi_1.7.3.tar.gz'
Content type 'application/x-gzip' length 7599615 bytes (7.2 MB)
==================================================
downloaded 7.2 MB

trying URL 'https://cloud.r-project.org/src/contrib/Rcpp_1.0.7.tar.gz'
Content type 'application/x-gzip' length 2941808 bytes (2.8 MB)

……

相信在两者中使用不同的下载方式install.packages()update.packages(). 有人看看吗?暂时学习 Coursera 课程

来源:RStudio 社区- R 包安装错误

confint.default

标签: rtidyverser-package

解决方案


虽然错误仍然存​​在,但至少:$ sudo su - -c "R -e \"devtools::update_packages()\""使更新和安装包工作正常。

https://community.rstudio.com/t/r-package-installation-error/110251/7?u=englianhu


推荐阅读