Jason Serviss
2018-06-13 11:05:10 UTC
Hello everyone,
I am currently in the process of trying to utilise C++ via Rcpp, RcppEigen, and RcppArmadillo in a package for the first time. I am experiencing the following on running devtools::check() with the package:
checking compiled code ... WARNING
File âcheck/libs/check.soâ:
Found â___assert_rtnâ, possibly from âassertâ (C)
Object: âRcppExports.oâ
I found a similar problem previously discussed (here: http://rcpp-devel.r-forge.r-project.narkive.com/yc1h8bf6/rcppeigen-package-skeleton-r-cmd-check-warning) some time ago although, in this case, it seemed to be system specific. Based on the comments, I created a minimal reproducible example (here: https://github.com/jasonserviss/check) and automated the build with TravisCI (build report here: https://travis-ci.org/jasonserviss/check/builds/391685256).
I have noticed two things:
1) there are 2 functions in the package, function âa" and function âbâ, if I remove function âbâ I no longer receive the warning. Despite this, there wouldnât, to my eyes, seem to be anything extremely unusual about function âbâ.
2) If I remove RcppArmadillo from the LinkingTo section in the DESCRIPTION file I, again, no longer receive the warning. I am aware of the fact that, in the example, there is no need to link to RcppArmadillo although, in the real use case, there is.
Id be very appreciative if anyone here could help me get an understanding for this warning and how it can be resolved!
Kind Regards,
Jason Serviss
I am currently in the process of trying to utilise C++ via Rcpp, RcppEigen, and RcppArmadillo in a package for the first time. I am experiencing the following on running devtools::check() with the package:
checking compiled code ... WARNING
File âcheck/libs/check.soâ:
Found â___assert_rtnâ, possibly from âassertâ (C)
Object: âRcppExports.oâ
I found a similar problem previously discussed (here: http://rcpp-devel.r-forge.r-project.narkive.com/yc1h8bf6/rcppeigen-package-skeleton-r-cmd-check-warning) some time ago although, in this case, it seemed to be system specific. Based on the comments, I created a minimal reproducible example (here: https://github.com/jasonserviss/check) and automated the build with TravisCI (build report here: https://travis-ci.org/jasonserviss/check/builds/391685256).
I have noticed two things:
1) there are 2 functions in the package, function âa" and function âbâ, if I remove function âbâ I no longer receive the warning. Despite this, there wouldnât, to my eyes, seem to be anything extremely unusual about function âbâ.
2) If I remove RcppArmadillo from the LinkingTo section in the DESCRIPTION file I, again, no longer receive the warning. I am aware of the fact that, in the example, there is no need to link to RcppArmadillo although, in the real use case, there is.
Id be very appreciative if anyone here could help me get an understanding for this warning and how it can be resolved!
Kind Regards,
Jason Serviss