Forecast package fails to load

library(forecast)
Error: package or namespace load failed for ‘forecast’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so, 6): Symbol not found: _EXTPTR_PTR
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so
Expected in: /Library/Frameworks/R.framework/Resources/lib/libR.dylib
in /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so
In addition: Warning message:
package ‘forecast’ was built under R version 4.0.2

forecast package installs but does not load. I updated RStudio (desktop for mac) and R with the latest versions.

System Information:

  • RStudio Edition: Desktop
  • RStudio Version: 1.4.1103
  • OS Version: BigSur 11.1
  • R Version: 4.0.3 GUI 1.73

sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS 10.16

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats graphics grDevices utils
[5] datasets methods base

other attached packages:
[1] tseries_0.10-48 zoo_1.8-8

loaded via a namespace (and not attached):
[1] quadprog_1.5-8 lattice_0.20-41
[3] digest_0.6.27 grid_4.0.3
[5] evaluate_0.14 quantmod_0.4.18
[7] rlang_0.4.10 curl_4.3
[9] TTR_0.24.2 xts_0.12.1
[11] rmarkdown_2.6 tools_4.0.3
[13] tinytex_0.28 xfun_0.20
[15] yaml_2.2.1 compiler_4.0.3
[17] htmltools_0.5.1 knitr_1.30

Try installing Rcpp first.

1 Like

That worked!!! Thank you very much for the suggestion.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.