Re: [Rd] Warnings created during R_eval or R_tryEval not shown before R ending or R error.

2023-04-29 Thread Laurent Gautier
Thanks Ivan. I did not know about ` .Internal(printDeferredWarnings())`. It does provide a solution for what I need. Best, Laurent Le mer. 26 avr. 2023 à 06:23, Ivan Krylov a écrit : > В Sun, 23 Apr 2023 13:33:16 -0400 > Laurent Gautier пишет: > > > When tracing what happens during an error I f

Re: [Rd] Warnings created during R_eval or R_tryEval not shown before R ending or R error.

2023-04-26 Thread Ivan Krylov
В Sun, 23 Apr 2023 13:33:16 -0400 Laurent Gautier пишет: > When tracing what happens during an error I found that > verrorcall_dflt() in src/main/errors.c calls PrintWarnings(). That > function is not part of R's C-API though. I've tried reading the source code and came to a similar conclusion.

[Rd] Warnings created during R_eval or R_tryEval not shown before R ending or R error.

2023-04-23 Thread Laurent Gautier
Hi, I have an embedded R, with the evaluation of expressions happening over time during the lifespan of the process. I tried either `R_eval()` and `R_tryEval()` for the evaluation. The issue I have is that the processing of warnings does not happen until the process exits and/or R is shut down. E