Serialize and Deserialize a C++ Object in Rcpp
This post shows how to serialize a c++ object to the raw vector in R and deserialize it with the help of Rcereal and BH.
First, please install the Rcpp, Rcereal, and BH from CRAN and enable the support of C++11 via Sys.setenv("PKG_CXXFLAGS"="-std=c++11").
We can ...