我看过很多关于安装 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,但也没有用。
任何帮助将不胜感激,我现在已经尝试了很多次......