Tea Tree
Tea Tree

Reputation: 984

How to load sjPlot when receiving namespace:insight error?

When loading sjPlot, I receive the following error:

Error: package or namespace load failed for ‘sjPlot’:
 object ‘reshape_ci’ is not exported by 'namespace:insight'

I read elsewhere that the insight package might be out of date. So I've tried to update the insight package to no avail. I also tried updating the sjPlot package without success. I did all of these things in combination with restarting a clean RStudio session (closing and re-opening RStudio) and also removed and re-installed sjPlot and insight. I also tried update.packages() for both sjPlot and insight.

I'm out of ideas on how to load the sjPlot package at this point. How can I load it?

Upvotes: 0

Views: 2337

Answers (2)

olalekan mutiu
olalekan mutiu

Reputation: 1

Simply install sjPlot from GitHub by using this line of codes

library(devtools)
devtools::install_github("strengejacke/sjPlot")

In case you receive error message that devtools is not available, you can install devtools first using:

install.package(devtools)

Upvotes: 0

tiago horn
tiago horn

Reputation: 1

I had the same problem:

library("sjPlot")

Error: package or namespace load failed for ‘sjPlot’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘nloptr’

After many tries I receive a message from R: Install package "strengejacke" from GitHub (devtools::install_github("strengejacke/strengejacke")) to load all sj-packages at once!

Upvotes: 0

Related Questions