ggplot2版本0.9.3.1不会加载到R 3.0.2中 [英] ggplot2 version 0.9.3.1 won't load into R 3.0.2
问题描述
我不小心删除了旧版本的ggplot2,所以我下载了新版本,并且当我使用
I accidentally deleted my old version of ggplot2, so I downloaded the new version, and when I use
library(ggplot2)
我得到以下错误:
I get the following error:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘colorspace’
Error: package or namespace load failed for ‘ggplot2’
有谁知道如何修复这个?我尝试在R 3.0.2和R 3.0.1(以前的工作环境)中重新安装ggplot2的旧版本,并且它说该软件包不可用。
Does anyone know how to fix this? I tried reinstalling the older version of ggplot2 in both R 3.0.2 and R 3.0.1 (where it previously worked!) and it says the package is not available.
如果任何人有解决如何解决新版本加载或如何让旧版本再次工作,我会感激 - 我真的需要用ggplot绘制一些东西!!
If anyone has a solution to how to fix the loading of the new version or how to get the old version work again, I would be indebted - I really need to plot something with ggplot!!
干杯
推荐答案
通过在R中执行以下行来安装缺少的colorspace软件包:
Install the missing colorspace package by executing the following line in R:
install.packages("colorspace")
这篇关于ggplot2版本0.9.3.1不会加载到R 3.0.2中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!