简体   繁体   English

在R中安装PARTY软件包时出错

[英]Error installing PARTY package in R

Newbie R user here. 新手R用户在这里。 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: 我想在RStudio(0.98.507版)中安装party软件包,但是无论是直接从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’

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. 到目前为止,其他所有软件包的下载和安装(插入符,树,rpart)都有效,所以我感到困惑,为什么它不起作用。

Install "multcomp", then "party" 安装“ multcomp”,然后安装“ party”

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

I was using ctree. 我正在使用ctree。 and then I wanted to change the font size of the tree chart. 然后我想更改树形图的字体大小。 I installed package "partykit". 我安装了软件包“ partykit”。 Then ctree doesn't work anymore. 然后,ctree不再起作用。 I was spending LONG time try to debug.. Later I found out there is also a ctree in the "partykit". 我花了很长时间尝试调试。后来我发现“ partykit”中还有一个ctree。 In order to run ctree using "party" we would need to uninstall "partykit" so that there is no conflict.. 为了使用“ party”运行ctree,我们需要卸载“ partykit”,以便没有冲突。

(might not be exactly what the question is trying to solve. but hope this would be a reference to others :-)) (可能不完全是问题要解决的问题。但是希望这将对其他人有所帮助:-))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM