【发布时间】:2013-03-08 04:54:12
【问题描述】:
我看了很多关于ggplot2安装的话题,但没有遇到我的问题。
我使用的是 R Studio 版本 0.97.332。我已经安装了sm和extremevalues没有任何问题,但是我无法安装ggplot2。
我尝试了以下两种方法,但都没有。
install.packages("C:\\Temp\\ggplot2_0.9.3.1.zip", repos=NULL,
lib.loc="...\Documents\\R\\win-library\\2.15")
Installing package(s) into ‘...\Documents/R/win-
library/2.15’ (as ‘lib’ is unspecified)
inferring 'repos = NULL' from the file name
package ‘ggplot2’ successfully unpacked and MD5 sums checked
Warning in install.packages :
unable to move temporary installation
‘\\..\Documents\R\win-
library\2.15\file15c06ecb4488\ggplot2’ to
‘\\...\Documents\R\win-library\2.15\ggplot2’
我已经手动删除了 ggplot2 的所有损坏(?)文件夹,但这也不起作用 手动移动文件夹也不起作用。
install.packages("ggplot2")
Installing package(s) into ‘\\.../Documents/R/win-
library/2.15’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/2.15/ggplot2_0.9.3.1.zip'
Content type 'application/zip' length 2665534 bytes (2.5 Mb)
opened URL
downloaded 2.5 Mb
package ‘ggplot2’ successfully unpacked and MD5 sums checked
Warning in install.packages :
unable to move temporary installation
‘\\...\Documents\R\win-
library\2.15\file15c0758038ea\ggplot2’ to
‘\\...\Documents\R\win-library\2.15\ggplot2’
The downloaded binary packages are in
C:\Users\...\AppData\Local\Temp\RtmpmocnrL\downloaded_packages
我尝试了同样的方法来安装 corrplot,但也没有成功。
任何帮助将不胜感激,我已经尝试过很多次了......
【问题讨论】: