我正在尝试加载 ggplot2 包,并已从源代码安装了该包,如下所示;
> install.packages("S:/!DSG/! BJM1/Use-R!/Packages/packages-zip/ggplot2_0.9.3.1.zip",dep=TRUE)
inferring 'repos = NULL' from the file name
package ‘ggplot2’ successfully unpacked and MD5 sums checked
我很确定任何包依赖项都已解决,但是当我尝试加载包时。R 返回以下错误消息。
> library(ggplot2)
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Users/jb04647/Documents/R/R-2.15.3/library/MASS/libs/i386/MASS.dll':
LoadLibrary failure: The specified procedure could not be found.
In addition: Warning message:
package ‘ggplot2’ was built under R version 3.0.0
Error: package/namespace load failed for ‘ggplot2’
我已经尝试重新安装“MASS”包,但仍然得到同样的错误。似乎 MASS 要求 R>3.0.0,而 ggplot 要求≥2.14。毫无疑问,其他用户一直在 R 2.14 或 2.15 上运行 ggplot2,所以我认为这不是问题。还附上了 sessionInfo 详细信息。
> sessionInfo()
R version 2.15.3 (2013-03-01)
Platform: i386-w64-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=Japanese_Japan.932 LC_CTYPE=Japanese_Japan.932 LC_MONETARY=Japanese_Japan.932 LC_NUMERIC=C
[5] LC_TIME=Japanese_Japan.932
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] plyr_1.8
loaded via a namespace (and not attached):
Error in x[["Version"]] : subscript out of bounds
In addition: Warning messages:
1: In FUN(c("colorspace", "dichromat", "digest", "grid", "gtable", :
DESCRIPTION file of package 'colorspace' is missing or broken
2: In FUN(c("colorspace", "dichromat", "digest", "grid", "gtable", :
DESCRIPTION file of package 'digest' is missing or broken
有没有其他人观察到与此类似的行为并找到解决方案?