我对Windows中的R包安装存在严重问题,我没有得到管理员权限。例如,要安装ggplot2,我做了:
install.packages("C:/Users/Rasengan/Downloads/ggplot2_1.0.0.tar.gz", repos = NULL, type="source")
我收到此错误消息:
ERROR: dependencies 'plyr', 'gtable', 'reshape2', 'scales', 'proto' are not available for package 'ggplot2'
* removing 'C:/Program Files/R/R-3.1.1/library/ggplot2'
Warning messages:
1: running command '"C:/PROGRA~1/R/R-31~1.1/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.1.1\library" "C:/Users/Rasengan/Downloads/ggplot2_1.0.0.tar.gz"' had status 1
2: In install.packages("C:/Users/Rasengan/Downloads/ggplot2_1.0.0.tar.gz", :
installation of package ‘C:/Users/Rasengan/Downloads/ggplot2_1.0.0.tar.gz’ had non-zero exit status
所以问题来自于ggplot2的包装,我尝试的是逐个安装不同的包('plyr','gtable','reshape2','scale','proto')但是这个过程是无止境的,因为'plyr'依赖于许多或包装......
请你能帮助我,因为我的工作需要闪亮的ggplot2和rCharts。 提前谢谢!
PS:proto包不依赖于其他包,所以我很容易安装:
> install.packages("C:/Users/Rasengan/Downloads/proto_0.3-10.tar.gz", repos = NULL, type="source")
* installing *source* package 'proto' ...
** package 'proto' successfully unpacked and MD5 sums checked
** R
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
'proto.Rnw'
'protoref.Rnw'
** testing if installed package can be loaded
* DONE (proto)