简体   繁体   English

为什么在尝试加载插入符号包时出现错误?

[英]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.

相关问题 如何安装 Caret 包? 安装时,我收到此消息 - How to install Caret package? While installing, I am getting this message 为什么我在尝试使用 Rio 导入时收到此错误 - Why am I getting this error while trying to import with Rio 为什么我要安装的每个软件包都出现错误“软件包'XXXX'不可用(对于R版本3.5.0)”? - Why am i getting an error “package ‘XXXX’ is not available (for R version 3.5.0)” for every package that I am trying to install? 为什么在决策树中制作混淆矩阵时出现错误? - Why am i getting an error while trying to make a confusion matrix in decision tree? 在 R 中安装任何软件包时出现此错误 - I am getting this Error while installing any package in R 为什么在 R 中加载 redist package 时出现此错误? - Why am I getting this error when loading the redist package in R? 尝试加载插入符号包时,Rstudio挂起 - Rstudio hangs when trying to load caret package 我正在尝试加载 tidyverse 库,但收到一条错误消息 - I am trying to load the tidyverse library, but I am getting an error message 为什么在合并两个数据框时出现此错误? - Why am I getting this error while merging two dataframes? 我正在尝试在 Shinyapp 中使用 plot,但出现反应性错误 - I am trying to plot in Shinyapp but I am getting a reactive error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM