简体   繁体   English

如何在 R 版本 3.6.1 中安装 MVPARTwrap 包?

[英]How to install MVPARTwrap package in R version 3.6.1?

I am trying to install mvpart and MVPARTwrap packages in R version 3.6.1.我正在尝试在 R 版本 3.6.1 中安装mvpartMVPARTwrap包。 I install on my PC the folder of these two packages in zip version and load them in the relative folder of the package.我在我的电脑上安装了这两个压缩包的文件夹,并将它们加载到包的相对文件夹中。

When I run the script library(mvpart) I get this message:当我运行脚本library(mvpart)我收到以下消息:

ERROR: 'mvpart' package was built before R 3.0.0: please reinstall it."错误:'mvpart' 包是在 R 3.0.0 之前构建的:请重新安装。”

I try to load this library in the old version of R (version 2.15) and the message is我尝试在旧版本的 R(版本 2.15)中加载这个库,消息是

in install.packages (mvpart): object 'mvpart' not found".在 install.packages (mvpart) 中:找不到对象“mvpart””。

I do not understand why it is impossible to load this package.我不明白为什么不能加载这个包。 Thanks so much.非常感谢。

Maybe the answer is no more relevant, but I just had to install those libraries so maybe it will still help someone later.也许答案不再相关,但我只需要安装这些库,也许以后它仍然会对某人有所帮助。 I suggest the install from github as it will install dependencies, you need however to be able to compile the source.我建议从 github 安装,因为它会安装依赖项,但是您需要能够编译源代码。 So here we go :所以我们开始:

  1. first install rtools if it is not already installed go here and follow the instruction如果尚未安装,请先安装 rtools,请转到此处并按照说明进行操作

  2. update/install devtools if necessary as described here如有必要,请按照此处所述更新/安装 devtools

  3. using this command, it should work now.使用这个命令,它现在应该可以工作了。 you may be asked to update some packages, accept all你可能会被要求更新一些包,接受所有

    devtools::install_github("cran/mvpart") devtools::install_github("cran/mvpart")

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

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