安装ggp​​lot2后出错。我该如何解决?

时间:2017-08-11 06:08:06

标签: r

安装ggp​​lot2后我试图运行库。但它显示错误信息:

       Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), 
     versionCheck = vI[[j]]) : 
     there is no package called ‘Rcpp’
      Error: package or namespace load failed for ‘ggplot2’
    Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), 
     versionCheck = vI[[j]]) : 
         there is no package called ‘Rcpp’
        Error: package or namespace load failed for ‘ggplot2’

1 个答案:

答案 0 :(得分:0)

这样做:

remove.packages(c("ggplot2", "data.table"))
install.packages('Rcpp', dependencies = TRUE)
install.packages('ggplot2', dependencies = TRUE)
install.packages('data.table', dependencies = TRUE)