新手 R 用户在这里。我想在 RStudio(版本 0.98.507)中安装派对包,但是无论是直接从 CRAN 存储库安装还是先保存文件然后在 R 中加载,我都会收到以下错误消息:
> install.packages("party")
Installing package into ‘C:/Users/Linda/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/party_1.0-15.zip'
Content type 'application/zip' length 731049 bytes (713 Kb)
opened URL
downloaded 713 Kb
package ‘party’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Linda\AppData\Local\Temp\~~~~~~~\downloaded_packages
> library("party", lib.loc="C:/Users/Linda/Documents/R/win-library/3.1")
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
object 'vI' not found
Error: package or namespace load failed for ‘party’
我无法解释错误信息。到目前为止,所有其他软件包下载和安装都有效(插入符号、树、rpart),所以我很困惑为什么这不起作用。