When I run the following commmand:
install.packages('forecast', dependencies = TRUE)
library(forecast)
I get the error:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called 'ggplot2' In addition: Warning message: package 'forecast' was built under R version 3.2.5 Error: package or namespace load failed for 'forecast'
Anyone has had the same problem? I am using R Studio Version 1.1.456
Try installing (or reinstalling) ggplot2
.
remove.packages(ggplot2)
install.packages(ggplot2, dependencies = TRUE)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.