简体   繁体   English

无法安装和调用R软件包

[英]Trouble Installing and Calling R Package

I am trying to install the R package "rattle". 我正在尝试安装R包“ rattle”。

I do so by simply typing: 我只要输入以下内容即可:

install.packages("rattle")

...upon which a lot of good installin' seems to take place. ……似乎发生了许多良好的安装。 But then when I call the package 但是当我打电话给包裹时

library(rattle)

I get the error message 我收到错误消息

Error: package or namespace load failed for 'rattle' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called 'stringi' 错误:在loadNamespace(j <-i [[1L]],c(lib.loc,.libPaths()),versionCheck = vI [[j]])中,“ rattle”的包或名称空间加载失败叫做“ stringi”

All of the research I've done online suggests some form of 我在网上进行的所有研究都表明某种形式的

install.packages("rattle", insert_something_here)

but I've had no luck with such methods. 但是我对这种方法没有运气。

Any ideas on what I'm missing? 关于我所缺少的任何想法吗?

Ok, so the entire issue seemed to revolve around the stringi package. 好的,所以整个问题似乎都围绕着stringi软件包。

I first installed the latest Rtools package from 我首先从安装了最新的Rtools软件包

https://cran.r-project.org/bin/windows/Rtools/ https://cran.r-project.org/bin/windows/Rtools/

and then I was able to successfully install stringi manually 然后我能够手动成功安装stringi

install.packages("stringi")

and then I could call rattle no problem. 然后我可以打电话给rattle

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

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