search for: r_repldlldo1

Displaying 15 results from an estimated 15 matches for "r_repldlldo1".

2007 Jan 18
0
Emulating a REPL in frontends
A common need in R frontends is to provide some sort of read, (parse), evaluate, print loop. However, there are also a number of points where frontends may want to differ from the standard REPL as available e.g. in R_ReplDLLdo1(). First some thoughts on what is needed, and what is already there, or missing. If you want to skip over this, a short summary is provided in the second half, below a line marked "--------": Read stage: - R_ReplDLLdo1() calls ReadConsole to fetch an input buffer. This is not well id...
2015 Aug 21
0
Problems with embedded R, ReplDLL
...OLE_BUFFER_SIZE] = '\0'; DLLbufp = DLLbuf; } The call of SETJMP makes no sense. Nothing that follows in this function can possibly cause a long jump. The use of R_ReplDLLinit is illustrated in the R Extensions manual (doc/manual/R-exts.texi): R_ReplDLLinit(); while(R_ReplDLLdo1() > 0) { /* add user actions here if desired */ } Note that the R_ReplDLLdo1 function does not call SETJMP. Amazingly, however, the combination sometimes seems to work! When a long jump is taken during evaluation of an expression initiated by R_ReplDLLdo1, the stack is resto...
2010 Aug 20
2
segfault in embedded r after call to repldlldo1
Dear R developers, i've got a question concerning an embedded R instance. I called the initialization routines as seen in the "writing extensions" guide (Rf_initialize, setup_Rmainloop and R_ReplDLLinit). I also changed the function callback pointer of readconsole and writeconsoleex to my local functions. when i call mainloop there is no problem and the commands are evaluated
2023 Apr 26
1
Warnings created during R_eval or R_tryEval not shown before R ending or R error.
...s 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. When driving an embedded R, R_ReplDLLdo1() will call it for you between expressions it processes, but there doesn't seem to be a way to call it yourself. Interestingly, there is .Internal(printDeferredWarnings()) which eventually calls PrintWarnings(), but it's not exported as an API, only used in a few places like try(). Would...
2001 Mar 30
1
Problem with rtest.c
I have some problems with the rtest.c example under gnuwin32\front-ends I am able to build it and it runs without problems. But when I give it a command that isn't defined it crashes. This only happens when I build it in then complicate case where it uses R_ReplDLLdo1(). Any help would be appreciated. Ps. Sorry my poor English -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the &q...
2005 Sep 22
1
Rf_initEmbeddedR in Windows
...calling into R.dll and the missing of R.lib corresponding to R.dll. extern char *getDLLVersion(); extern void R_DefParams(Rstart); extern void R_SetParams(Rstart); extern void setup_term_ui(void); extern void ProcessEvents(void); extern void end_Rmainloop(void), R_ReplDLLinit(void); extern int R_ReplDLLdo1(); extern void run_Rmainloop(void); Then I google it, I find some solution of Borland C++ Builder, i.e. using implib to generate R.lib. The only place where I can find implib is at (http://www.geocities.com/SiliconValley/5806/download.htm#IMPLIB) and the commond generates a error as below C:\Pr...
2012 Feb 03
2
Hanging -- please help decipher event report
...ntents/MacOS/R UID: 501 Thread eef8d9 DispatchQueue 1 User stack: 19 start + 52 (in R) [0x100001a74] 19 main + 844 (in R) [0x100001dec] 19 -[REngine runREPL] + 102 (in R) [0x100010f86] 19 run_REngineRmainloop + 192 (in R) [0x1000194a0] 19 R_ReplDLLdo1 + 462 (in libR.dylib) [0x10016ce4e] 19 Rf_eval + 1196 (in libR.dylib) [0x10013ca1c] 19 do_for + 678 (in libR.dylib) [0x100140f66] 19 Rf_eval + 1196 (in libR.dylib) [0x10013ca1c] 19 do_begin + 308 (in libR.dylib) [0x100141724]...
2018 Mar 01
0
Small program embedding R crashes in 64 bits
Hi everyone, I'm trying to create a small C++ program which embed R, but I'm having problems when I try to do it on Windows 64 bits. I have created a minimal reproducible example which is just the src/gnuwin32/front-ends/rtest.c file with the R_ReplDLLdo1() loop, the only difference is that I set the interactive mode to TRUE. Here is the cpp file: https://gist.github.com/anonymous/08b42e83c949e250f60b068d58a3ec51 When compiled in 32 bits, everything works: I enter R commands and no crash. When compiled in 64 bits (mingw64 and R x64 libs, and execut...
2023 Apr 23
1
Warnings created during R_eval or R_tryEval not shown before R ending or R error.
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. Evaluating `warnings()` returns NULL (NILSXP). It seems like the warnings are stuck in a list out of
2012 Aug 20
0
Problem with initializiing R main loop under Windows (R.dll-version: 2.15.1)
...setup_Rmainloop (); // Init the IO buffer and the global context R_ReplDLLinit(); // if I use the following instead, 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...
1999 Oct 09
2
Re: R-0.65.1 for WinNT/9XRe: R-0.65.1 for WinNT/9X
Hello. I've dowloaded R-0.65.1 for WinNT/9X. >There is more support for (support of) ActiveX Automation via the >Rproxy.dll: see the file front-ends/readme. And where is this "the file front-ends/readme" which describes R's ActiveX Automation ? In "readme" under "r-install path\" and FAQ for Win port, no description about this. Please teach me.
1999 Oct 09
2
Re: R-0.65.1 for WinNT/9XRe: R-0.65.1 for WinNT/9X
Hello. I've dowloaded R-0.65.1 for WinNT/9X. >There is more support for (support of) ActiveX Automation via the >Rproxy.dll: see the file front-ends/readme. And where is this "the file front-ends/readme" which describes R's ActiveX Automation ? In "readme" under "r-install path\" and FAQ for Win port, no description about this. Please teach me.
2012 Feb 29
0
R 2.14.2 is released + R anniversary
...a partial workaround for errors in the TRE regular-expressions engine with named classes and repeat counts of at least 2 in a MBCS locale (PR#14408): these are avoided when TRE is in 8-bit mode (e.g. for useBytes = TRUE and when all the data are ASCII). o The C function R_ReplDLLdo1() did not call top-level handlers. o The Quartz device was unable to detect window sessions on Mac OS X 10.7 (Lion) and higher and thus it was not used as the default device on the console. Since Lion any application can use window sessions, so Quartz will now be the default...
2012 Feb 29
0
R 2.14.2 is released + R anniversary
...a partial workaround for errors in the TRE regular-expressions engine with named classes and repeat counts of at least 2 in a MBCS locale (PR#14408): these are avoided when TRE is in 8-bit mode (e.g. for useBytes = TRUE and when all the data are ASCII). o The C function R_ReplDLLdo1() did not call top-level handlers. o The Quartz device was unable to detect window sessions on Mac OS X 10.7 (Lion) and higher and thus it was not used as the default device on the console. Since Lion any application can use window sessions, so Quartz will now be the default...
2003 Jul 16
2
Fatal error in SJava.
Dear r-helpers, I have been trying to invoke R from Java in a Windows 2000 computer (unfortunately). All my environment variables seem to be properly set, everything seems to be in order, but I obtaining a Fatal error: unable to open the base package error window. Also, the output of the invoker is Loading RInterpreter library R_HOME: R_HOME=C:/Programas/R RVersion: R_VERSION=1.6.1 whereas