安装和调用R包时遇到问题

时间:2022-09-19 07:45:20

I am trying to install the R package "rattle".

我正在尝试安装R包“拨浪鼓”。

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中的'rattle'的包或命名空间加载失败(j < - i [[1L]],c(lib.loc,.libPaths()),versionCheck = vI [[j]]):没有包叫'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?

关于我缺少的任何想法?

1 个解决方案

#1


0  

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.

然后我可以称拨浪鼓没问题。

#1


0  

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.

然后我可以称拨浪鼓没问题。