<div dir="ltr"><div>Right, Writing R Extensions is a great reference.</div><div>To clarify the question, we are developing a package like RInside, which contains some compiled C++ code that is not meant to be used from R main. <br></div><div>We would like to distribute the C++ source code in an R package (like RInside), so we are trying to figure out how RInside managed to do this and satisfy CRAN checks.</div><div>Looking at current CRAN checks for RInside <a href="https://cloud.r-project.org/web/checks/check_results_RInside.html">https://cloud.r-project.org/web/checks/check_results_RInside.html</a> I see some similar NOTE / WARNING ... are these new in the last few months, or were they there when you submitted to CRAN? i.e. did CRAN accept the submission even with such NOTE / WARNING? Just trying to figure out the best way to package this compiled code so that CRAN will accept it.<br></div><div>Any tips/tricks you have discovered from your experience with RInside would be appreciated.</div><div>Toby<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 26, 2020 at 8:08 PM Dirk Eddelbuettel <<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 26 June 2020 at 15:55, Akhila Chowdary Kolla wrote:<br>
| But when I check the package I get the following warnings: using<br>
| devtools::check()<br>
| ‘../inst/include/Log.o’   File ‘testproject/libs/testproject.so’:     Found<br>
| no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’    Compiled code<br>
| should not call entry points which might terminate R nor write to<br>
| stdout/stderr instead of to the console, nor use Fortran I/O nor system<br>
| RNGs. It is good practice to register native routines and to disable<br>
| symbol search.*<br>
<br>
See "Writing R Extensions"<br>
<br>
|   *Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’  - why is<br>
<br>
See "Writing R Extensions"<br>
<br>
| this necessary as I am trying to compile some external C<br>
| files(inst/include/DeepState.c) which are not in src folder*<br>
|    *Compiled code should not call entry points which might terminate R<br>
| nor write to stdout/stderr instead of to the console, nor use Fortran<br>
| I/O nor system RNGs. - what does this mean?*<br>
<br>
See "Writing R Extensions"<br>
<br>
| how can I solve this issue and get rid of the warning in the R CMD check?<br>
| Can someone please suggest a way to resolve this?<br>
<br>
See "Writing R Extensions" -- nobody here on the list "makes the rules". Only<br>
R Core / CRAN do. We all just try live by them.<br>
<br>
Dirk<br>
<br>
-- <br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a><br>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a></blockquote></div>