gpt4 book ai didi

package - R - 安装插入符包时出错

转载 作者:行者123 更新时间:2023-12-04 19:53:40 39 4
gpt4 key购买 nike

> Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()),
> versionCheck = vI[[j]]) : namespace ‘pbkrtest’ 0.4-2 is being
> loaded, but >= 0.4.4 is required
> Error: package or namespace load
> failed for ‘caret’

Caret 工作正常,直到我尝试加载 Rcpp 但它把一切都搞砸了。

我搜索了与 caret 类似问题的答案,但发布的解决方案似乎对我不起作用。我关注了:

install.packages("caret", dependencies = TRUE) 

但是没有用。

最佳答案

我建议您检查 R 版本。我将版本更新到 3.5.1,它运行良好:)

仅限 Mac——使用 updateR

与installer类似,updateR是帮助在Mac OS上更新R的包。

您需要的 R 代码是以下 5 行:

install.packages('devtools') #assuming it is not already installed

library(devtools)

install_github('andreacirilloac/updateR')

library(updateR)

updateR(admin_password = 'Admin user password')

关于package - R - 安装插入符包时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35444753/

39 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com