[R-pkg-devel] Checking compiled code ... WARNING
@r|e|92@nd @end|ng |rom gm@||@com
Fri Mar 12 21:11:44 CET 2021
I checked (as cran) my package PartialNetwork
<https://github.com/ahoundetoungan/PartialNetwork> and I got this warning.
* checking compiled code ... WARNING
Found ‘__assert_fail’, possibly from ‘assert’ (C)
Compiled code should not call entry points which might terminate R nor
write to stdout/stderr instead of to the console, nor use Fortran I/O
nor system RNGs.
I am wondering if this is because I used Rprintf (line 147 in this file
and prgcpp.increment() (line 184 in this file
) to show the progression of the program from C++ functions.
If this is the source of this warning, how can I print from C++ functions
in the console? I thought that Rprintf and prgcpp.increment() are the best
ways to do it. I know that using cout and endl causes this warning but I do
not use them.
*Aristide Elysée HOUNDETOUNGAN*
*Ph.D. Candidate in Economics at Université Laval*
*Personal website : *www.ahoundetoungan.com
[[alternative HTML version deleted]]
More information about the R-package-devel