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
<https://github.com/ahoundetoungan/PartialNetwork/blob/master/src/mcmcSARpl.cpp>)
and prgcpp.increment() (line 184 in this file
<https://github.com/ahoundetoungan/PartialNetwork/blob/master/src/mcmcSARpl.cpp>
) 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]]

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to