[R-pkg-devel] Checking compiled code ... WARNING

Elysée Aristide @r|e|92@nd @end|ng |rom gm@||@com
Fri Mar 12 21:11:44 CET 2021

Dear all,

I checked (as cran) my package PartialNetwork
<https://github.com/ahoundetoungan/PartialNetwork> and I got this warning.

* checking compiled code ... WARNING
File ‘PartialNetwork/libs/PartialNetwork.so’:
    Found ‘__assert_fail’, possibly from ‘assert’ (C)
Object: ‘RcppExports.o’

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.

Thank you!


*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 mailing list