我在加載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