<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hello everyone,
<div class=""><br class="">
</div>
<div class="">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:</div>
<div class=""><br class="">
</div>
<div class="">
<pre tabindex="0" class="GNKRCKGCGSB ace_text-layer GNKRCKGCJSB GNKRCKGCJV ace_line" style="line-height: 1.45; outline: none; border: none; word-break: break-all; margin-top: 0px; margin-bottom: 0px; -webkit-user-select: text; box-sizing: border-box; width: 703.1025390625px; padding: 6px; caret-color: rgb(248, 248, 248); font-family: Monaco !important; font-stretch: inherit !important; white-space: pre-wrap !important;"><pre tabindex="0" class="GNKRCKGCGSB ace_text-layer GNKRCKGCJSB GNKRCKGCJV ace_line" style="line-height: 1.45; outline: none; border: none; word-break: break-all; margin-top: 0px; margin-bottom: 0px; -webkit-user-select: text; box-sizing: border-box; width: 729.6525268554688px; padding: 6px; font-family: Monaco !important; font-stretch: inherit !important; white-space: pre-wrap !important;"><span class="GNKRCKGCGSB  ace_constant ace_language" style="outline: none; border: none; word-break: break-all; margin: 0px; -webkit-user-select: text;">checking compiled code ... WARNING
</span><span class="GNKRCKGCGSB" style="outline: none; border: none; word-break: break-all; margin: 0px; -webkit-user-select: text;">File ‘check/libs/check.so’:
  Found ‘___assert_rtn’, possibly from ‘assert’ (C)
    Object: ‘RcppExports.o’</span></pre><div class=""><br class=""></div></pre>
</div>
<div class="">I found a similar problem previously discussed (here: <a href="http://rcpp-devel.r-forge.r-project.narkive.com/yc1h8bf6/rcppeigen-package-skeleton-r-cmd-check-warning" class="">
http://rcpp-devel.r-forge.r-project.narkive.com/yc1h8bf6/rcppeigen-package-skeleton-r-cmd-check-warning</a>) some time ago although, in this case, it seemed to be system specific. Based on the comments, I created a minimal reproducible example (here:
<a href="https://github.com/jasonserviss/check" class="">https://github.com/jasonserviss/check</a>) and automated the build with TravisCI (build report here:
<a href="https://travis-ci.org/jasonserviss/check/builds/391685256" class="">https://travis-ci.org/jasonserviss/check/builds/391685256</a>). </div>
<div class=""><br class="">
</div>
<div class="">I have noticed two things:</div>
<div class=""><br class="">
</div>
<div class="">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”.</div>
<div class=""><br class="">
</div>
<div class="">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.</div>
<div class=""><br class="">
</div>
<div class="">Id be very appreciative if anyone here could help me get an understanding for this warning and how it can be resolved!</div>
<div class=""><br class="">
</div>
<div class="">Kind Regards,</div>
<div class="">Jason Serviss</div>
<div class=""> </div>
</body>
</html>