I have been having trouble with the r package "semPlot" successfully installing onto Rstudio 1.2.5033
Each time I have tried installing the semplot package I get the following error.
install.packages('semPlot')
library(semPlot)
Error: package or namespace load failed for ‘semPlot’ in
loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]]): there is no package called ‘data.table’
I have tried installing the package that is being called to not be there (in the above case 'data.table'), but I have done this 5 or 6 times and feeling like continuous this process is insanity.
Alternatively, is there any alternative to reviewing the path diagrams from SEM if the semPlot package (for the semPaths function) continues this process?
The problem seems to be with your installer not with semPlot. Try
install.packages('semPlot', dependencies = T)
would be helpful if you mention your OS
Related
After attempting to install R openxlsx package, car package now fails to load. How do I repair R car package load error (R version 3.5.2.)?
I have checked imports/dependencies for the car package - openxlsx present.
So how the message below can be fixed?
library(car)
Error: package or namespace load failed for ‘car’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘openxlsx’
Try install.packages("openxlsx").
Dependencies have to be mentioned explicitly when you create a package, and it happens all the time that authors forget some.
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.
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 been trying to use caret library for a simple ML application. I am using the latest versions of R (3.4.3) and RStudio (1.1.414). Here is my approach
install.packages("caret",repos = "http://cran.r-project.org", dependencies = c("Depends", "Imports", "Suggests"))
when I run the code library(caret) I get the following error
Error: package or namespace load failed for ‘caret’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘gower’
Now I went forward and installed the packages that it suggests one by one i.e., DEoptimR, gower, etc. This list never ends as once I install a package it will ask for another package. I am so frustrated. I have literally looked up in every forum but it did not solve my problem. I am not sure why the code install.package does not install all the required packages even though I ask explicitly to do so. when I check .libPaths() I can see it has access to both my library directories
[1] "C:/Users/omid/Documents/R/win-library/3.4"
[2] "C:/Program Files/R/R-3.4.3/library"
would anyone be able to help please?
Edit 1:
install.packages("caret",repos = "https://cran.r-project.org", dependencies = c("Depends", "Imports"))
Installing package into ‘C:/Users/omidm/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.r-project.org/bin/windows/contrib/3.4/caret_6.0-78.zip'
Content type 'application/zip' length 5155777 bytes (4.9 MB)
downloaded 4.9 MB
package ‘caret’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\omidm\AppData\Local\Temp\RtmpGuZ1vH\downloaded_packages
library(caret)
Loading required package: lattice
Loading required package: ggplot2
Error: package or namespace load failed for ‘caret’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘gower’
I also uninstalled R and RStudio and installed them again. Still getting the same error.
Solved:
I managed to solve this issue somehow, however, I am still not sure how. here is what I did
Open R GUI (not RStudio) and run:
install.packages("installr") # install
installr::updateR() # updating R
type q() to exit and then open RStudio. Go to Packages and Update all packages
Install package caret as per comments from #chinsoon and #Ronald
install.packages("caret", dependencies=c("Depends", "Imports"))
if you still get an error about any package just install that one. It will not ask for any other packages as you have removed "Suggest" from dependencies. Hope this manages to solve some people's problem.
Easy and simply:
install.packages("gower")
library(caret)
omg! yes ive been trying to find a solution for days! basically install anything it asks. I had to do the following
install.packages("gower")
library(caret)
Error: package or namespace load failed for ‘caret’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘hardhat’
install.packages("hardhat")
library(caret)
Error: package or namespace load failed for ‘caret’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘parallelly’
install.packages("parallelly")
then ran library(caret) and it worked
I am trying to install the forecast package in R Studio ( Version 1.0153) and when i try to call the package using library(forecast) i get this error
"Error: package or namespace load failed for ‘forecast’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘tibble’"
While installing the forecasting package i used the command install.packages("forecast",dep=T). This is the first time i am encountering a problem when trying to install a package.
I did so using this command in the console and the package was successfully installed.
install.packages('forecast')
When using
install.packages("forecast",dep=T)
I also received the same error as you. So will the other line do the trick?
Note I am using R 3.4 as well in the console.