[英]Why am I getting an error while trying to load caret package?
I tried: 我试过了:
library(caret)
then I got the error: 然后我得到了错误:
Loading required package: ggplot2
Error: package or namespace load failed for 'ggplot2' in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace 'rlang' 0.3.0.1 is already loaded, but >= 0.3.1 is required Error: package 'ggplot2' could not be loaded In addition: Warning message: package 'ggplot2' was built under R version 3.5.3 错误:在loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI [[i]])中'ggplot2'的程序包或名称空间加载失败:名称空间'rlang'0.3.0.1已经加载,但是> = 0.3.1是必需的错误:无法加载软件包'ggplot2'另外:警告消息:软件包'ggplot2'是在R版本3.5.3下构建的
so I tried updating the ggplot2 using: 所以我尝试使用以下方式更新ggplot2:
install.package("ggplot")
even after that I am getting the same error. 即使在那之后,我仍然遇到相同的错误。 my caret package is also updated. 我的插入符号包也已更新。
I think you can try two things. 我认为您可以尝试两件事。 One is updating your R version (and Rstudio version?). 一种是更新您的R版本(和Rstudio版本?)。 The other can be updating ggplot2 with dependencies: 另一个可以使用相关性更新ggplot2:
install.packages('ggplot2', dependencies = TRUE)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.