search for: verrorcall_dflt

Displaying 6 results from an estimated 6 matches for "verrorcall_dflt".

2023 Apr 23
1
Warnings created during R_eval or R_tryEval not shown before R ending or R error.
...why or how to force that to happen. The embedded R is interactive (R_Interactive is 1). Moreover, when the evaluation of another R expression after the warnings results in an R error I get the error message shown followed by pending warnings. 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. Would anyone have a suggestion about what I am missing? Best, Laurent [[alternative HTML version deleted]]
2023 Apr 26
1
Warnings created during R_eval or R_tryEval not shown before R ending or R error.
? Sun, 23 Apr 2023 13:33:16 -0400 Laurent Gautier <lgautier at gmail.com> ?????: > 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. PrintWarnings() is required for warnings() to work because it creates the last.warning variable for warnings() to access....
2007 Jul 04
2
problem with findFun call from embedded R
...sole=TRUE, ignoreRestartContexts=FALSE) at errors.c:719 719 LONGJMP(R_ToplevelContext->cjmpbuf, 0); (gdb) bt #0 jump_to_top_ex (traceback=TRUE, tryUserHandler=TRUE, processWarnings=TRUE, resetConsole=TRUE, ignoreRestartContexts=FALSE) at errors.c:719 #1 0x00002aaaaab77e5d in verrorcall_dflt (call=0x609d78, format=0x2aaaaace4a4d "%s", ap=0x7fffa13a94c0) at errors.c:516 #2 0x00002aaaaab7814a in Rf_errorcall (call=0x609d78, format=0x2aaaaace4a4d "%s") at errors.c:551 #3 0x00002aaaaab78347 in Rf_error (format=0x2aaaaace42da "could not find function \&quo...
2006 Apr 13
1
bus error on calling nmmin
...ss 0x0 #1 0x0054dd5c in REvprintf (format=0x5f0dc8 "%s", arg=0xbfffb5fc "") at ../../../../R-2.1.1/src/main/printutils.c:541 #2 0x0054dab0 in REprintf (format=0xbfff9570 "Error: invalid connection\n") at ../../../../R-2.1.1/src/main/printutils.c:458 #3 0x004de8c4 in verrorcall_dflt (call=0x0, format=0x5f0dc8 "%s", ap=0xbfffda30 "???P") at ../../../../R-2.1.1/src/main/errors.c:470 #4 0x004dea1c in Rf_errorcall (call=0x5f0dc8, format=0xbfffb5fc "") at ../../../../R-2.1.1/src/main/errors.c:514 #5 0x004deb38 in Rf_error (format=0xbfff9570 "Err...
2012 Nov 22
0
why does do_stop call R_GetTraceback ?
...k (skip=0) at ../../../src/main/errors.c:1312 #13 0x00007ff2880a347a in jump_to_top_ex (traceback=TRUE, tryUserHandler=<value optimized out>, processWarnings=FALSE, resetConsole=TRUE, ignoreRestartContexts=13368712) at ../../../src/main/errors.c:837 #14 0x00007ff2880a1ba9 in verrorcall_dflt (call=0x28ea1c0, format=<value optimized out>, ap=<value optimized out>) at ../../../src/main/errors.c:663 #15 0x00007ff2880a239e in Rf_errorcall (call=<value optimized out>, format=<value optimized out>) at ../../../src/main/errors.c:698 #16 0x00007ff2880a25c2...
2005 Oct 10
2
Catching warning and error output
...t ways to accomplish this. Here are some solutions I can think of: 1) In my programmers' dream, there'd simply be three callbacks that I can override: R_WriteConsole (exists), R_WriteWarning, and R_WriteError. R_WriteWarning, and R_WriteError would be called from vwarningcall_dflt, and verrorcall_dflt, respectively, instead of REprintf. The default implementation of those, would of course simply call REprintf. Drawbacks: a) REprintf is available for use in R_ext/Print.h. I'd miss out on any direct calls of REprintf, while those should probably still be recorded as a warning/error. b) I...