我已經查看了許多有關ggplot2安裝的主題,但沒有遇到我的問題。無法從庫中安裝ggplot2,也不支持.zip
我正在使用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,這也不能工作。
任何幫助,將不勝感激,我已經嘗試了很多次,現在...
安裝包,現在我已經把文件放在C:這似乎工作// Temp文件夾! – Fred 2013-03-21 14:36:45