Need help loading sjPlot package in R - r

I am trying to use the plot_model function to fit a GLM. I am able to install sjPlot using the install.packages function. However, when I use library(sjPlot), I get this:
Error: package or namespace load failed for ‘sjPlot’ in loadNamespace(j <- i[[1L]],
c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘tibble’ 1.4.2 is already loaded, but >= 2.0.0 is required
Thanks

Have you tried updating your packages as suggested here?
Try running:
update.packages()
And then re-loading the library:
library(sjPlot)

Related

I can't seem to load the dplyr package, apparently I need to update something but I have updated R and the package itself and nothing seems to work

This is the error I get in the console:
Error: package or namespace load failed for ‘dplyr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): namespace ‘pillar’ 1.6.1 is already loaded, but >= 1.6.2 is required
Any tips?
Simply try install.packages("pillar"). If it doesn't work, try
remove.packages("pillar")
install.packages("pillar")
library(pillar)
library(dplyr)
If it does not work, after restarting R,
remove.packages("pillar")
remover.packages("dplyr")
install.packages("pillar")
install.packages("dplyr")
library(pillar)
library(dplyr)

"Forecast" package in R couldn't be executed

Previously, I had used this same package with the very same data. Today, I installed couple of neural network package in R. I noticed that after installing the new package, I can no longer execute the "forecast" package. There is some package missing, which I had re-install again. And the last one, I had this warning message. Is there anyone had any idea what it was?
library(forecast)
Error: package or namespace load failed for ‘forecast’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘pkgconfig’ 2.0.1 is being loaded, but >= 2.0.2 is required
In addition: Warning message:
package ‘forecast’ was built under R version 3.4.4
I had try to re-install the "forecast" package but still I got some error message. Thank you so much in advance.
By #andresrcs(Sustainer)
Jul 6
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace ‘pkgconfig’ 2.0.1 is being loaded, but >= 2.0.2 is required
This is telling you that you have to update this package dependency, try installing it first with
install.packages("pkgconfig")
If everything goes well, then you can try to install ggplot2 again, but this time try with this command
install.packages("ggplot2", dependencies = TRUE)

How to repair R car package failure to load?

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.

Installing ez library on R

I am new to R and feeling a bit confused. I am getting this error message
library(ez)
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()),
versionCheck = vI[[j]]) :
namespace ‘reshape2’ 1.4.1 is already
loaded, but >= 1.4.2 is required Error: package or namespace load
failed for ‘ez’
I have already checked the version that I have and it says 1.4.2. What should I do?
Thank you SO much
Maybe ‘reshape2’ 1.4.1 is still loaded..try the following
remove.packages("reshape2")
remove.packages("ez")
install.packages("ez")
Should work afterwards.
If not then try this afterwards
detach("package:reshape2", unload=TRUE)
And additionally restart the R session.

Installing Caret and ggplot2 packages in R 3.2.5

I've just installed a new version of R studio 3.2.5 that way I can install packages caret and ggplot2 however I always come across the same errors and not exactly sure where the problem is.
library(caret)
Loading required package: lattice
Loading required package: ggplot2
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘Rcpp’
Error: package ‘ggplot2’ could not be loaded**
After this message I've install.packages("ggplot2")
and this shows up
library(ggplot2)
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘Rcpp’
Error: package or namespace load failed for ‘ggplot2’**
Does anyone have any suggestions?
try this
install.packages("ggplot2", dependencies = TRUE)
I have also got the same error and i tried many ways given in various solutions.
one solution which worked is
install.packages("stringi")
Then it many give errors stating some of the dependent libraries are missing.
Install those libraries, it will work.

Resources