Displaying 15 results from an estimated 15 matches for "r_repldllinit".
2015 Aug 21
0
Problems with embedded R, ReplDLL
Along with getting pqR to work on Windows, I've also been testing it
in the context of embedded R, and in the process have found some
problems with the examples given of embedded R use.
One problem can be seen in R_ReplDLLinit, in src/main/main.c:
void R_ReplDLLinit(void)
{
SETJMP(R_Toplevel.cjmpbuf);
R_GlobalContext = R_ToplevelContext = R_SessionContext = &R_Toplevel;
R_IoBufferWriteReset(&R_ConsoleIob);
prompt_type = 1;
DLLbuf[0] = DLLbuf[CONSOLE_BUFFER_SIZE] = '\0';
DLLbufp =...
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
as expected. because i don't want R to run in an own thread and my app
should keep the control i want to use repld...
2005 Sep 22
1
Rf_initEmbeddedR in Windows
...llowing declaration of functions 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...
2009 Jan 08
1
Callbacks seems to get GCed.
...quot;,0);
structRstart rp;
Rstart Rp = &rp;
R_setStartTime();
R_DefParams(Rp);
Rp->R_Quiet = TRUE;
Rp->RestoreAction = SA_RESTORE;
Rp->SaveAction = SA_NOSAVE;
R_SetParams(Rp);
R_Interactive = TRUE;
Rf_initialize_R(argc, argv);
setup_Rmainloop();
R_ReplDLLinit();
info = R_getEmbeddingDllInfo();
R_registerRoutines(info, cMethods, callMethods, NULL, NULL);
}
int main (int argc, char** argv)
{
int i;
initR();
r_exec("x <- function (f) { .Call(\"set_callback1\",f); }");
r_exec("y <- function (f) { .Call(\&qu...
2001 May 13
1
Dynamic C Symbols and Embedding Suggestion
...sed
w/ the *NIX embedding stuff) I did a little experiment to see if I could
bind my primary executable. Adding the code below to Rdynload.c seemed to
work (in the Windows case). You'll note the remarkable resemblance to
AddDLL. :-) My test code calls this to set up its function list just after
R_ReplDllinit() just before entering the do1-loop--- though perhaps this
should be integrated into some part of the setup procedure for embedding
apps.
DllInfo* R_RegisterEmbeddedExecutable(HINSTANCE handle,char* path)
{
char* dpath,*name,DLLname[PATH_MAX], *p;
DeleteDLL(path);
if(CountDLL == MAX_NUM_DLLS)...
2006 Nov 27
1
R.DLL mapping by P/Invoke
...);
[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)]
static extern void setup_Rmainloop();
[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)]
static extern void R_ReplDLLinit();
//- R SEXP management
[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)]
static extern IntPtr Rf_mkString(string toConvert);
[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*...
2012 Aug 20
0
Problem with initializiing R main loop under Windows (R.dll-version: 2.15.1)
...gnal to own handler
signal(SIGBREAK, pi_onintr);
// set the arguments in R
R_set_command_line_arguments (argc, argv);
// Here, the main initialization of R is performed
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
};
//...
2007 Oct 17
0
Using R.dll in .NET IPC
...);
[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)]
static extern void setup_Rmainloop();
[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)]
static extern void R_ReplDLLinit();
//- R SEXP management
[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)]
static extern IntPtr Rf_mkString(string toConvert);
[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*...
2010 May 06
1
R on kdeedu-svn library problem
...ence to `Rf_unprotect'
CMakeFiles/cantor_rserver.dir/rserver.o: In function `RServer::initR()':
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:83: undefined
reference to `Rf_initEmbeddedR'
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:85: undefined
reference to `R_ReplDLLinit'
CMakeFiles/cantor_rserver.dir/rserver.o: In function `RServer::endR()':
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:194: undefined
reference to `Rf_endEmbeddedR'
CMakeFiles/cantor_rserver.dir/rcallbacks.o: In function
`setupCallbacks(RServer*)':
$SOURCES/kdeedu/cant...
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
2019 Dec 14
1
Inconsistent behavior for the C AP's R_ParseVector() ?
Hi Simon,
Widespread errors would have caught my earlier as the way that code is
using only one initialization of the embedded R, is used quite a bit, and
is covered by quite a few unit tests. This is the only situation I am aware
of in which an error occurs.
What is a "correct context", or initial context, the code should from ?
Searching for "context" in the R-exts manual
2009 Oct 26
0
R 2.9.0 is released
...p.ind group and a residual
group. It now formats all columns except the cs.ind group
separately (and zaps the zap.ind group column-by-column). The
main effect will be see in the output from print.anova, as
this grouped SS-like columns in the zap.ind group.
o R_ReplDLLinit() initializes the top-level jump so that some
embedded applications on Windows no longer crash on error.
o identical() failed to take the encoding of character strings
into account, so identical byte patterns are not necessarily
identical strings, and similarly Latin-...
2009 Oct 26
0
R 2.9.0 is released
...p.ind group and a residual
group. It now formats all columns except the cs.ind group
separately (and zaps the zap.ind group column-by-column). The
main effect will be see in the output from print.anova, as
this grouped SS-like columns in the zap.ind group.
o R_ReplDLLinit() initializes the top-level jump so that some
embedded applications on Windows no longer crash on error.
o identical() failed to take the encoding of character strings
into account, so identical byte patterns are not necessarily
identical strings, and similarly Latin-...
2009 Oct 26
0
R 2.10.0 is released
...p.ind group and a residual
group. It now formats all columns except the cs.ind group
separately (and zaps the zap.ind group column-by-column). The
main effect will be see in the output from print.anova, as
this grouped SS-like columns in the zap.ind group.
o R_ReplDLLinit() initializes the top-level jump so that some
embedded applications on Windows no longer crash on error.
o identical() failed to take the encoding of character strings
into account, so identical byte patterns are not necessarily
identical strings, and similarly Latin-...
2009 Oct 26
0
R 2.10.0 is released
...p.ind group and a residual
group. It now formats all columns except the cs.ind group
separately (and zaps the zap.ind group column-by-column). The
main effect will be see in the output from print.anova, as
this grouped SS-like columns in the zap.ind group.
o R_ReplDLLinit() initializes the top-level jump so that some
embedded applications on Windows no longer crash on error.
o identical() failed to take the encoding of character strings
into account, so identical byte patterns are not necessarily
identical strings, and similarly Latin-...