After a while I received it.
1) Restyling the latest version of Rcpp is a solution.
2) If you are not using lme4, but you also have this problem (a "dataptr function" not provided by the "Rcpp" package) in combination with dyn.load (), it’s worth noting, do not forget to enable
Library (Rcpp)
or
required (rcpp)
in your code before
dyn.load ("your_shared_lib.so")
:
building_shared_libs_with_Rcpp