Namespace error when loading R package sjPlot - r

I am getting this error when loading the R package sjPlot
library(sjPlot)
Error: package or namespace load failed for 'sjPlot':
'data_partition' object was not exported by 'namespace:parameters'
Somebody could help me.

Related

loading the package ggh4x in error: Error: package or namespace load failed for ‘ggh4x’: object ‘cli_abort’ is not exported by 'namespace:cli'

whilst loading the ggh4 package in R version 2022.07.1.
I get the following error.
Error: package or namespace load failed for ‘ggh4x’:
object ‘cli_abort’ is not exported by 'namespace:cli'
What I tried:
Removing the ggh4 package and downloading it from github:
devtools::install_github("teunbrand/ggh4x")
Removing the cli package and downloading it from github:
devtools::install_github("teunbrand/ggh4x")
Thanks for any help!
I just had the same problem, you need to install the cli package first ! :)

Error: package or namespace load failed for ‘CGPfunctions’ [duplicate]

I am getting the following error when I am loading a few libraries in R:
library(forecast)
Error : object ‘f_eval’ is not exported by 'namespace:lazyeval'
In addition: Warning message:
package ‘forecast’ was built under R version 3.3.2
Error: package or namespace load failed for ‘forecast’
library(tsoutliers)
Error : object ‘f_eval’ is not exported by 'namespace:lazyeval'
In addition: Warning message:
package ‘tsoutliers’ was built under R version 3.3.2
Error: package or namespace load failed for ‘tsoutliers’
I have tried reinstalling the packages but it didn't help. Also, I was able to use the forecast package previously but I started facing this error post the installation of tsoutliers package.
How can I resolve this issue?
This should do the job for you:
install.packages('lazyeval')
In the future, try and provide a bit more about your system and install, using the output from:
sessionInfo()

Errors in loading the "caret" library

I have initially successfully installed the caret package through
install.packages("caret")
But I have trouble in loading the "caret" library after the execution of the following code.
library (caret)
The following error code is generated :
*Loading required package: lattice
Error: package or namespace load failed for ‘lattice’:
package ‘grid’ does not have a namespace
Error: package ‘lattice’ could not be loaded*
How to resolve this issue?
The problem has been resolved by doing:
> install.packages("caret", dependencies = c("Depends", "Suggests"))

Why do I get an error when I try to load ggplot2 in R?

When I run:
library("ggplot2")
I get the error below:
Error: package or namespace load failed for ‘ggplot2’:
object ‘enexprs’ is not exported by 'namespace:rlang'
In addition:
Warning message:
package ‘ggplot2’ was built under R version 3.4.4
Any idea how I can solve this issue?
Please install the latest version of rlang to solve this error.

ggplot library() error R version 3.1.3

I installed ggplot2 using install.packages() function. It gets installed properly and shows in the Packages pan. However, when I run library(ggplot2), I get the following error:
library("ggplot2", lib.loc="~/R/win-library/3.1")
Error in library.dynam(lib, package, package.lib) :
DLL ‘digest’ not found: maybe not installed for this architecture?
Error: package or namespace load failed for ‘ggplot2’
What is going on here? Can somebody help, please?

Resources