Skip to content

[R-pkg-devel] Rprintf with mclapply

1 message · Guillaume Chapron

#
Hello,

I have a R package with a compiled C executable to run simulations. Simulations can be very long so I use mclapply to launch several instances (each with a different R seed). I would need to follow the simulation progress and I used to do that with printf in the C code. But this is not allowed on CRAN and I have to use Rprintf. The problem is that with mclapply, Rprintf prints nothing in the R console! Any idea how can I fix this? Thanks!

Guillaume