unable ti install Forecast package

Error: package or namespace load failed for ‘forecast’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘xts’

above error message is coming .

please help if anyone can.

This means you need to install the xts package.


More generally, if you want to use a package, you'll usually need its dependencies (the other packages on which it depends). install.packages() has a dependencies argument that you can set to TRUE:

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

Thanks a lot Mara.

1 Like

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