简体   繁体   中英

Trouble Installing and Calling R Package

I am trying to install the R package "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'

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.

I first installed the latest Rtools package from

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

and then I was able to successfully install stringi manually

install.packages("stringi")

and then I could call rattle no problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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