我正在尝试加载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
有没有其他人观察过类似行为并找到解决方案?