Error: Package “ggplot2” could not be found, when loading the caret package

安稳与你 提交于 2019-12-05 06:39:11
Clinton Adams

Thanks guys for the help. I did try install.packages("caret", dep="TRUE") which installed the package digest, then tried install.packages("ggplot") which installed ggplot with the dependency gtable but still had some missing packages. Did finally manage to load caret without any problems after installing the missing packages as prompted.

You are missing some packages that ggplot2 imports (e.g. digest and gtable)

You should probably use

install.packages("caret", dependencies = c("Depends", "Imports", "Suggests"))

This should be the same as dep = TRUE but, when I use the character string above, I get all the requirements.

Van

Try this line to install ggplot2:

install.packages('ggplot2', repos='http://cran.us.r-project.org')

install packages required and their library under R3.2.3 as caret built in this version and it is worked for me.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!