Original link:tecdat.cn/?p=16691

Original source:Tuo End number according to the tribe public number

 

Problem recurrence:

I need to install the R package StochVol, which is only for version 3.6.0 of R. So, I installed R (version 3.6.0) and opened it with RStudio. But now, even if I successfully use it to install the package, I can’t load any libraries. Specifically, the libraries I need to load are StochVol, Rcpp and CARET. I tried to reinstall R, but it still didn’t work.

Software: R

Environment: Mac OSX

The error message I received was

install.packages("package_name") caretforecastggplot2Error: Package or namespace load failed for 'forecast' in dyn.load(file, DLLpath = DLLpath,...) : unable to load Shared object '/ Library/Frameworks/R.f ramework/Versions / 3.6 / Resources/Library/Rcpp/libs/Rcpp. So' : Dlopen (/ Library/Frameworks/R.f ramework/Versions / 3.6 / Resources/Library/Rcpp/libs/Rcpp. So, 6) : Symbol not found: ___cxa_uncaught_exceptions Referenced from: / Library/Frameworks/R.f ramework/Versions / 3.6 / Resources/lib/libc++. 1. The dylib Expected in: / usr/lib/libc++ abi. Dylib in/Library/Frameworks/R.f ramework/Versions / 3.6 / Resources/lib/libc++. 1. The dylibCopy the code

Error after loading:

 

After successfully installing the packages using Rcpp install.Packages (“Rcpp”), I still received the above message Library (Rcpp) when I tried. (Everything was fine until the upgrade, except I couldn’t install quadprog, so couldn’t install the Forecast package either).

 

Solution:

I have learned that you will need to recompile the old package R after upgrading to the new version. Run the following line in the R terminal

update.packages(ask=FALSE,
                checkBuilt=TRUE,
                repos="https://cloud.r-project.org")
Copy the code

then

install.packages(c("Rcpp", "caret", "forecast", "ggplot2", "quadprog"), 
                 dependencies=TRUE,
                 repos="https://cloud.r-project.org")
Copy the code

 

 

Error history screenshots and last successfully loaded screenshots.

 


Most welcome insight

1. How to solve the problem of SINGULAR FIT in linear mixed model

2. Install the R software package on the UBUNTU VM

3. Run R language commands on the CLI in WINDOWS

Error: OBJECT OF TYPE ‘SYMBOL’ IS NOT SUBSETTABLE