search for: r_defparam

Displaying 11 results from an estimated 11 matches for "r_defparam".

Did you mean: r_defparams
2003 Dec 31
1
programming with C++Builder 5
Hi there, I am using C++ Builder 5 to develop windows GUI interface for a R library package. I have to pass R objects to and from C functions and also evaluate them within C functions. But I always got linking error message of "unresolved external functions" with those internal functions or macros defined in Rinternals.h file. I can not find the reason. I have included R.h and
2003 Dec 31
1
programming with C++Builder 5
Hi there, I am using C++ Builder 5 to develop windows GUI interface for a R library package. I have to pass R objects to and from C functions and also evaluate them within C functions. But I always got linking error message of "unresolved external functions" with those internal functions or macros defined in Rinternals.h file. I can not find the reason. I have included R.h and
2008 Mar 19
1
R_ParseVector problem: it's cutting off after the decimal point
...nInfo() R version 2.6.2 (2008-02-08) i386-pc-mingw32 locale: German_Austria.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base ================================================ // init R Rf_initEmbeddedR(0, NULL); Rstart Rp = &rp; R_DefParams(Rp); // root of the R installation Rp->rhome = get_R_HOME(); // root of the users directory Rp->home = getRUser(); // UImode: RGui, RTerm, LinkDLL Rp->CharacterMode = LinkDLL; // function which reads input for R from a console Rp->ReadConsole = myRea...
2005 Sep 22
1
Rf_initEmbeddedR in Windows
...nal symbol __imp__putenv referenced in function _Rf_initEmbeddedR error LNK2019: unresolved external symbol __imp__UserBreak referenced in function _my_onintr error LNK2019: unresolved external symbol _getDLLVersion referenced in function _Rf_initEmbeddedR error LNK2019: unresolved external symbol _R_DefParams referenced in function _Rf_initEmbeddedR error LNK2019: unresolved external symbol _R_SetParams referenced in function _Rf_initEmbeddedR error LNK2019: unresolved external symbol _R_SizeFromEnv referenced in function _Rf_initEmbeddedR error LNK2019: unresolved external symbol _setup_Rmainloop refe...
2009 Jan 08
1
Callbacks seems to get GCed.
...} void initR() { char *argv[] = {"REmbeddedPascal", "--gui=none", "--silent", "--no-save"}; int argc = 4; DllInfo *info; setenv("R_HOME","/usr/lib/R",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,...
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
2009 Sep 03
1
Running an expression 1MN times using embedded R
...f (status != PARSE_OK) { UNPROTECT(2); return(R_NilValue); } for(i = 0; i < Rf_length(cmdexpr); i++) ans = R_tryEval(VECTOR_ELT(cmdexpr, i),NULL,&Rerr); UNPROTECT(2); return(ans); } int embedR(int argc, char **argv){ structRstart rp; Rstart Rp = &rp; R_DefParams(Rp); Rp->NoRenviron = 0; Rp->R_Interactive = (Rboolean)1; R_SetParams(Rp); R_SignalHandlers=0; if (!getenv("R_HOME")) { fprintf(stderr, "R_HOME is not set. Please set all required environment variables before running this program.\n"); return(-1...
2006 Nov 27
1
R.DLL mapping by P/Invoke
...Up [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern void R_setStartTime(); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern void R_DefParams(ref RStartStruct @params); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern void R_SetParams(ref RStartStruct @params); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSe...
2009 Aug 14
1
Package-level access to Rp->R_Quiet ?
I would like to simulate the effect of the command-line option --quiet from user-level scripts and startup code. From src/main/CommandLineArgs.c I learn that Rp->R_Quiet is set, and I see how that is used in main/main.c. I would use this from code in Rprofile.site. In other words, I want to be silent when --quiet is used (as e.g. by littler or Rscript) but not by R itself in normal
2012 Aug 20
0
Problem with initializiing R main loop under Windows (R.dll-version: 2.15.1)
...epl is: void RServer::run() { // If we have no GUI frontend running, don't init the R-server if (!connectToGui()) return; // set the start time R_setStartTime(); // Definel callback handler struct structRstart RParams; R_DefParams (&RParams); RParams.R_Quiet = FALSE; // RParams.R_Interactive = TRUE; RParams.R_Verbose = FALSE; RParams.R_Slave = FALSE; RParams.RestoreAction = SA_RESTORE; RParams.SaveAction = SA_NOSAVE; RParams.rhome...
2007 Oct 17
0
Using R.dll in .NET IPC
...Up [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern void R_setStartTime(); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern void R_DefParams(ref RStartStruct @params); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern void R_SetParams(ref RStartStruct @params); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSe...