search for: r_runexitfin

Displaying 5 results from an estimated 5 matches for "r_runexitfin".

2009 Mar 05
0
calling Rf_initEmbeddedR twice gives an error
...re saved data in .RData I've recognized that there were others with that problem - which is marked user error here http://bugs.r-project.org/cgi-bin/R/trashcan?id=12644;user=guest;selectid=12644 Unfortunately it is nowhere stated what one should have called... Any of R_dot_Last(); R_RunExitFinalizers(); R_gc(); does not help either... However I can trigger the problem on the R cmdline when I do: .Call("R_isMethodsDispatchOn", 1,2, PACKAGE = "base") : also looking at src/main/registration.c I don't see a reason why it should be wrong: CALLDEF(R_isMethods...
2006 Aug 31
1
Overriding InitTempDir
For embedded projects, one may want to eliminate the per-session temp directory created by InitTempDir() and just use a system-specific temp directory. Here's my solution: extern char *R_TempDir; void my_InitTempDir() { char *tmp; if (R_TempDir){ if (rmdir(R_TempDir) != 0){ perror("Fatal Error: could not remove R's TempDir!");
2012 Aug 20
0
Problem with initializiing R main loop under Windows (R.dll-version: 2.15.1)
...no problem occurs on error in evaluation: // run_Rmainloop (); while ((_state== Connected || _state == Running) && R_ReplDLLdo1() > 0) { Pi::msleep(5); // to keep the processor cool }; // Usually we don't get here on q() R_RunExitFinalizers(); Rf_KillAllDevices(); } This, however is mostly adapted from 'writing R extensions'. Nonetheless, this way I receive an abnormal program termination whenever an error occurs in the evaluation of code returned from 'RReadConsoleWin'. I'm pretty sure t...
2011 Mar 08
3
How to disable R's crash prompt
Dear R devel, I have a C++ app that calls into embedded R to perform some analytic calculations. When my app encounters a segmentation fault, R always prints the following crash prompt and asks me to enter an action: *** caught segfault *** address 0x8, cause 'memory not mapped' Possible actions: 1: abort (with core dump, if enabled) 2: normal R exit 3: exit R without saving workspace
2006 Oct 19
1
Segmentation fault/buffer overflow with fix() in Fedora Core 5 from Extras repository
...rom /usr/lib/R/modules//R_X11.so #6 0x00d5f0dd in ?? () from /usr/lib/R/modules//R_X11.so #7 0x00d60428 in ?? () from /usr/lib/R/modules//R_X11.so #8 0x00d61b15 in RX11_dataentry () from /usr/lib/R/modules//R_X11.so #9 0x002bf4c5 in R_GetX11Image () from /usr/lib/R/lib/libR.so #10 0x001dfd26 in R_RunExitFinalizers () from /usr/lib/R/lib/libR.so #11 0x001b0973 in Rf_eval () from /usr/lib/R/lib/libR.so #12 0x001b4d28 in Rf_applyClosure () from /usr/lib/R/lib/libR.so #13 0x001b0973 in Rf_eval () from /usr/lib/R/lib/libR.so #14 0x001b1887 in Rf_eval () from /usr/lib/R/lib/libR.so #15 0x001b0973 in Rf_eval...