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

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()

Related

Problems loading two libraries

I am trying to install the libraries plotKML and spatialEco in a standard way, with library().
However, despiste I updated R, updated all my libraries, and tried reinstalling them, I keep getting the next errors:
> library(plotKML)
plotKML version 0.6-1 (2020-03-08)
Error: package or namespace load failed for ‘plotKML’:
.onAttach failed in attachNamespace() for 'plotKML', details:
call: CRS("+init=epsg:4326")
error: NA
In addition: Warning message:
package ‘plotKML’ was built under R version 4.0.3
> library(spatialEco)
Error: package or namespace load failed for ‘spatialEco’:
.onLoad failed in loadNamespace() for 'units', details:
call: udunits_init(file.path(.get_ud_xml_dir(), "udunits2.xml"))
error: Error in function udunits_init: Can't open installed, default, unit database
In addition: Warning message:
package ‘spatialEco’ was built under R version 4.0.3
How can I solve it?

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.

Unsuccessful unpackaged "forecast"

I have tried many times to install the package "forecast", but always unsuccessfully. I have the newest version of R.
The strange thing is that the package is successfully unpacked, but the load (through the Library) doesn't work.
This is the error:
Error : .onLoad failed in loadNamespace() for 'Rcpp', details:
call: new_dummyObject(.dummyInstancePointer)
error: object 'class__dummyInstance' not found
In addition:
Warning message:
package ‘forecast’ was built under R version 3.1.3
Error: package or namespace load failed for ‘forecast’

Error installing R package - Kernsmooth

I am getting error while installing package KernSmooth. How can I install this pacakge ?
Getting warning messages on not able to access index for repository and one with package not available. Below are example warning message-
Warning: unable to access index for repository
http://lib.stat.cmu.edu/R/CRAN/src/contrib Warning message: package
‘KernSmooth’ is not available (for R version 3.2.1)

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