Search code examples
rinstall.packageslazyeval

Error: Package or namespace load failed


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?


Solution

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