Fail to install forecast packages on mac

Error Information: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.2Description of issue -

Steps taken so far -

System Information:

  • RStudio Edition: (Desktop or Server)
  • RStudio Version: 1.2.5042
  • OS Version: Mac os catalina 10.15.1
  • R Version: 4.0.0

Also:

  • RStudio diagnostics report:
  • Your sessionInfo():
  • RStudio crash report:
  • RStudio application log files:

From Troubleshooting Guide: Using RStudio

I recall seeing this error on a different post a couple days ago. Try updating R to 4.0.2.

1 Like