search for: r_getembeddingdllinfo

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

2009 Jan 08
1
Callbacks seems to get GCed.
...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(\"set_callback2\",f); }"...
2009 Sep 03
1
Running an expression 1MN times using embedded R
...boolean)1; // ptr_R_ShowMessage = Re_ShowMessage; // ptr_R_WriteConsoleEx =Re_WriteConsoleEx; // ptr_R_WriteConsole = NULL; // ptr_R_ReadConsole = NULL; return(0); } int main(int argc, char **argv){ if (embedR(argc,argv)) exit(1); setup_Rmainloop(); DllInfo *info = R_getEmbeddingDllInfo(); R_registerRoutines(info, NULL, callMethods, NULL, NULL); SEXP runner1,runner2; PROTECT(runner1=rexpress("expression({ for(x in 1:5) { .Call('rh_status','x') }})")); if (runner1 == R_NilValue){ UNPROTECT(1); exit(1); } PROTECT(runner2=R...
2013 Jan 16
0
Small clarification to R-exts, questions on ptr_do_selectlist
Hi, 1. I suggest adding the following piece of advice at the end of the section describing R_getEmbeddingDllInfo() (currently 8.1.3) in R-exts.texi: --- In order to call registered symbols of the embedding application from a package, you have to specify @code{PACKAGE = "(embedding)"} in @code{.C}, @code{.Call}, etc. --- 2. Section 8.1.2 of R-exts.text ("Setting R callbacks") has a new li...
2007 Oct 03
1
R-2.6.0 is released
...xt on Windows. C-LEVEL FACILITIES o New utility function alloc3DArray similar to allocMatrix. o The entry point R_seemsS4Object in Rinternals.h has not been needed since R 2.4.0 and has been removed. Use IS_S4_OBJECT instead. o Applications embedding R can use R_getEmbeddingDllInfo() to obtain DllInfo for registering symbols present in the application itself. o The instructions for making and using standalone libRmath have been moved to the R Installation and Administration manual. o CHAR() now returns (const char *) since CHARSXPs should...
2007 Oct 03
1
R-2.6.0 is released
...xt on Windows. C-LEVEL FACILITIES o New utility function alloc3DArray similar to allocMatrix. o The entry point R_seemsS4Object in Rinternals.h has not been needed since R 2.4.0 and has been removed. Use IS_S4_OBJECT instead. o Applications embedding R can use R_getEmbeddingDllInfo() to obtain DllInfo for registering symbols present in the application itself. o The instructions for making and using standalone libRmath have been moved to the R Installation and Administration manual. o CHAR() now returns (const char *) since CHARSXPs should...