我在加载g中的ggplot2库时遇到了问题。下面是我键入的代码。任何人都有关于如何使其工作的任何想法?尝试在R中加载库(ggplot2)时出错
> library(ggplot2)
Error in get(x, envir = this, inherits = inh) :
unused argument(s) (envir = this, inherits = inh)
Error : unable to load R code in package 'ggplot2'
Error: package/namespace load failed for 'ggplot2'
编辑1:更多信息
> sessionInfo()
R version 2.13.0 (2011-04-13)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] grid stats graphics grDevices utils datasets methods base
other attached packages:
[1] quantmod_0.3-15 TTR_0.20-2 xts_0.8-0 zoo_1.6-5 Defaults_1.1-1
[6] reshape2_1.1 proto_0.3-9.2 reshape_0.8.4 plyr_1.5.2
loaded via a namespace (and not attached):
[1] lattice_0.19-26 stringr_0.4 tools_2.13.0
编辑2:
GGPLOT2,我试图使用的版本是0.8.9。当我打电话的回溯功能,我得到以下结果:
> traceback()
2: stop(gettextf("package/namespace load failed for '%s'", package),
call. = FALSE, domain = NA)
1: library(ggplot2)
我可能不能帮助你,但人们可能会想要更多的细节;具体来说,运行sessionInfo()的输出将是一个好开始 – joran 2011-05-20 00:15:44
好酷,我'll will update with info! – shreyasm 2011-05-20 01:02:21
你试图加载什么版本的ggplot2?Wha t是'library'失败后'traceback()'的输出? – 2011-05-20 01:18:23