3
我最近將R和Rstudio下載到了我的電腦上。無法安裝和加載軟件包
當我嘗試安裝包ncdf(或任何包裝)我得到以下信息:
> install.packages("ncdf")
Installing package into ‘C:/Users/Talos/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/ncdf_1.6.7.zip'
Content type 'application/zip' length 358300 bytes (349 Kb)
opened URL
downloaded 349 Kb
package ‘ncdf’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Talos\AppData\Local\Temp\RtmpKuMfwR\downloaded_packages
> load("ncdf")
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
In addition: Warning message:
In readChar(con, 5L, useBytes = TRUE) :
cannot open compressed file 'ncdf', probable reason 'No such file or directory'
我試圖去到該文件夾並手動解壓縮文件,這似乎是沒有什麼區別的所有。
這是什麼解決方案,以便我可以安裝,加載和使用包?
哦,夥計。你必須愛上SO投票系統。 +1爲正確的答案。 – A5C1D2H2I1M1N2O1R2T1