本文介绍了R-安装脱字号软件包时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

> 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’

在我尝试加载Rcpp之前,Caret运转良好,这一切都搞砸了.

Caret was working fine until I tried to load Rcpp and it messed everything up.

我搜索了插入符号中类似问题的答案,但发布的解决方案似乎不适用于我的问题.我关注了:

I searched the answers for a similar problem with caret but the solutions posted did not seem to work on mine. I followed:

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

但这没用.

推荐答案

我建议您检查R版本.我将版本更新为3.5.1,它可以完美运行:)

I would suggest you to check the R version. I updated the version to 3.5.1 and it works perfectly :)

仅Mac –使用updateR

Mac only – use updateR

类似于安装程序,updateR是用于在Mac OS上帮助更新R的软件包.

Similar to installr, updateR is the package to help updating R on Mac OS.

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

The R code you will need is these 5 lines:

install.packages('devtools')#假设尚未安装

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

库(devtools)

library(devtools)

install_github('andreacirilloac/updateR')

install_github('andreacirilloac/updateR')

库(updateR)

updateR(admin_password ='管理员用户密码')

updateR(admin_password = 'Admin user password')

这篇关于R-安装脱字号软件包时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-18 05:24
查看更多