在 R 中加载包 [英] Loading Packages in R
本文介绍了在 R 中加载包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
library(ggplot2)
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘vctrs’
In addition: Warning message:
package ‘ggplot2’ was built under R version 3.6.3
library(dplyr)
Error: package or namespace load failed for ‘dplyr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘vctrs’
In addition: Warning message:
package ‘dplyr’ was built under R version 3.6.3
推荐答案
我解决了,我需要升级我的 R.以前我使用的是 3.6.0 版本,现在我升级到 4.0.2,升级后一切正常.
I got solved, I need to upgrade my R. Previously I am using version 3.6.0 and now I upgraded to 4.0.2, after upgrade everything works fine.
这篇关于在 R 中加载包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文