在R中安装PARTY软件包时出错 [英] Error installing PARTY package in R

查看:286
本文介绍了在R中安装PARTY软件包时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此处是新手R用户. 我想在RStudio(0.98.507版)中安装party软件包,但是无论是直接从CRAN存储库直接安装它,还是先保存文件然后再将其加载到R中,我都会收到以下错误消息:

Newbie R user here. I wanted to install the party package in RStudio (Ver 0.98.507), but whether I install it directly from the CRAN repository or whether I save the file first and then load it in R, I get the following error message:

> 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)都可以正常工作,所以我感到困惑,为什么它不起作用.

I am unable to interpret the error message. Every other package download and installation has worked so far though (caret, tree, rpart) so I am confused why this is not working.

推荐答案

先安装"multcomp",然后再安装"party"

Install "multcomp", then "party"

install.packages("multcomp")
library(multcomp)
install.packages("party")
library(party)

这篇关于在R中安装PARTY软件包时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆