简体   繁体   English

加载ggplot2包时出错

[英]Error while loading ggplot2 package

I get the following error when I try to load ggplot2 . 我尝试加载ggplot2时出现以下错误。 I tried to uninstall scales and reinstall it but for some reason R can't find the package when I want to remove the package... 我试图卸载scales并重新安装它但由于某些原因,当我想要删除包时R无法找到包...

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace ‘scales’ 0.2.5 is already loaded, but >= 0.3.0 is required
In addition: Warning message:
package ‘ggplot2’ was built under R version 3.2.3 
Error: package or namespace load failed for ‘ggplot2’

I had the same problem, I just install again ggplot2 and everything worked again. 我遇到了同样的问题,我只是再次安装ggp​​lot2,一切都恢复了。 It installed also scales 0.4.2, so it solved the problem by itself. 它的安装也是0.4.2,所以它自己解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM