[Rcpp-devel] [**SPAM**] Re: ___assert_rtn warning with package check
edd at debian.org
Fri Jun 15 13:38:20 CEST 2018
On 15 June 2018 at 10:56, Jason Serviss wrote:
| Sorry for the late reply (somehow your reply ended up in the Junk folder). Switching RcppArmadillo and RcppEigen in the LinkingTo section (and thus the header order) did not help BUT your mention of NDEBUG lead me to this Githuhb issue: https://github.com/RcppCore/RcppArmadillo/issues/116. The addition of a similar file in the inst folder (see change log at the bottom of the issue) with #define NDEBUG 1 and then adding the file as an import in RcppExports.cpp did the trick. Unfortunately, running compileAttributes() locally overwrites the manual changes in RcppExports.cpp but, for now, I guess I will have to live with this. Thanks a lot for your input!
Re-read the Rcpp Attributes vignette more carefully. There are way to have a
header file auto-included, one way is to name the same as your package but
append _types.h -- ie RcppGSL has inst/include/RcppGSL_types.h.
No need for manual updates then.
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the Rcpp-devel