Error: package or namespace load failed for ‘forecast’

I am getting this error message. Any one has any clue what could be the reason. I am using R 4.0.2 and Rstudio 1.3.959.

Error: package or namespace load failed for ‘forecast’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
object 'pkgInfo' not found
In addition: Warning message:
In loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
package ‘timeDate’ has no 'package.rds' in Meta/

Hi @KumarS,
I suggest you try re-installing the forecast package and its dependencies. Run:

install.packages("forecast", dependencies=TRUE)


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

Hi @KumarS,
Something weird is happening with your install by the look of it. First, restart a "plain-vanilla" session of RStudio and do not load any startup code. Then, can you re-run the "forecast" install and post the output here? I assume you are installing package pre-compiled binaries (from CRAN) and not compiling the source code versions? Binaries are likely to give you less problems (and be much quicker). The output from running the following code will also be useful for diagnosis:

packageDescription("timeDate")   # Since this was referred to in the error message


Hi @DavoWW,

I have already tried this , but I am still getting this error.