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.
Related
I have written my code a-2 months ago and i try to reuse it, but the installation of packages fails and i become this warning:
install.packages("devtools")
library("devtools")
> library("devtools")
Loading required package: usethis
Error: package or namespace load failed for ‘usethis’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘cli’ 3.3.0 is already loaded, but >= 3.4.0 is required
Error: package ‘usethis’ could not be loaded
Although i reinstalled RStudio and R, tried to upadte all packages and install all their dependencies etc, it fails to install the updates/packages. Do you have any idea? Thank you in advance.
first you need to check from bottom right (Packages) and search for devtools if you found check if installed or not, also you can write ?devtools to see if help page show up for Package development tools for R, if you want to use the package you can write devtools:: and follow it with the name of function.
Below is the exact error code. I am new to R, RStudio, and tidyverse. I did load Tidyverse two years ago for a class on the same computer but have not used it since. Below is the exact error code.
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘purrr’ 0.3.4 is already loaded, but >= 1.0.1 is required
I have turned both the R program and R studio off and on again, and turned my computer off and on again. The same error occurs. I may uninstall and reinstall R to see if that helps.
As it turns out, the purrr package was out of date, which it actually says in the last line of code. I just needed time to stop and think.
looks like the package has been successfully installed, however, the below message keeps appearing:
Error: package or namespace load failed for ‘kknn’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘lattice’
The kknn package was successfully installed before today. But I can't knit the document to pdf, so I installed a package called latexpdf. After that, the whole RStudio just doesn't function well. I don't know what happened... tried to re-install but doesn't help.
Does anyone know what should I do with this? thank you!
Thanks for the modification!
I installed Lattice package and the problem solved...what a silly question...
I tried installing rtweet() in R but it shows the following error:
Error: package or namespace load failed for ‘rtweet’ in
loadNamespace(j <- imp[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]]): there is no package called ‘Rcpp’
As Russ said, you should try to install Rcpp before:
install.packages("Rcpp")
Or you could use the line:
install.packages("rtweet", dependencies = TRUE)
It will install rtweet and all dependencies like Rcpp
You could also, try to install it directly from URL:
install.packages("https://cran.r-project.org/web/packages/rtweet/index.html")
And if still fails, go directly to issues from rtweet (https://github.com/mkearney/rtweet/issues) ;-)
And also be careful, because R packages are case-sensitive!
Have a nice day!
I have gone through the threads related to qdap but their problem is not the same as mine. Moreover, many of them do not have accepted answers. I installed 'qdap' package but when I load it using library(qdap), it returns the following error:
Error: package or namespace load failed for ‘qdap’ in loadNamespace(i,
c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package
called ‘openNLPdata’
I have even tried install.packages("qdap", dependencies = TRUE) but that did not make any difference. Any information in this regard will be helpful.
I met the same problem, too. I listed by solution as below.
First, you can try to install package(qdap) as this way.
library(devtools)
install_github("trinker/qdapDictionaries")
install_github("trinker/qdapRegex")
install_github("trinker/qdapTools")
install_github("trinker/qdap")
If "install_github("trinker/qdap")" is failed, you have to check the version of package "tm", which is "0.7.6". After updating this, you can install package "qdap" successfully.