Displaying 13 results from an estimated 13 matches for "r_setparams".
2018 Jun 17
1
A recent commit breaks embedded application on Windows
A line was added to call `R_SetParams ` in the function `R_SetWin32` 4 days ago.
https://github.com/wch/r-source/blob/2370eca96267e29a69396ef53a52ff5d6f60c65b/src/gnuwin32/system.c#L780
However, `R_SetParams` actually calls `R_SetWin32`.
https://github.com/wch/r-source/blob/30f7698e19fe1d2ce8fe53d85cd6cfad21fc8bb0/src/main/startup.c#L2...
2013 Nov 21
2
Running R embedded in an mpiexec spawned process - Fatal error: you must specify '--save', '--no-save' or '--vanilla'
...ctive = true,
Verbose = false,
LoadInitFile = true,
LoadSiteFile = true,
RestoreAction = StartupRestoreAction.NoRestore,
NoRenviron = false
};
rEngine.Initialize(rStartParams); // calls the R API R_SetParams, then setup_Rmainloop
I gather that the following is hit in src/R-3.0.2/src/unix/system.c, in the function Rf_initialize_R:
if (!R_Interactive && Rp->SaveAction != SA_SAVE &&
Rp->SaveAction != SA_NOSAVE)
R_Suicide(_("you must specify '--save', '--no-s...
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
2013 Nov 10
1
Embedded R Fails When Run on LSF Queue System
...tal error: you must specify '--save', '--no-save' or '--vanilla'
This is confusing becasue I believe I have set this by changing the startup parameters so that the no-save option is in use. I initialize R with the following collection of function calls:
1-Rf_initialize_R
2-R_SetParams
3-setup_Rmainloop
At step 2 I pass in a structure that specifies the no-save option (as well as interactive=true, verbose=false), so I would expect it to be okay, but I still receive this error. Again, not at the terminal but only when run as a separate process.
I gathered from this thread that s...
2008 Mar 19
1
R_ParseVector problem: it's cutting off after the decimal point
...busy(=1)/idle(=0)
Rp->Busy = myBusy;
Rp->home = getRUser();
// R-Settings...
Rp->R_Quiet = (Rboolean)FALSE;
Rp->R_Interactive = (Rboolean)TRUE;
Rp->RestoreAction = SA_RESTORE;
Rp->SaveAction = SA_NOSAVE;
// our parameters
R_SetParams(Rp);
R_set_command_line_arguments(0, NULL);
GA_initapp(0, NULL);
readconsolecfg();
/// run_Rmainloop() starting in a different thread
2005 Sep 22
1
Rf_initEmbeddedR in Windows
...rnal 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 referenced in
function _Rf_initEmbeddedR
error LNK2019: unresolved external symbol _setup_term_ui ref...
2009 Jan 08
1
Callbacks seems to get GCed.
...;--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, callMethods, NULL, NULL);
}
int main (int argc, char** argv)
{
int i;
initR();
r_exec("x <- function...
2009 Sep 03
1
Running an expression 1MN times using embedded R
...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);
}
int stat= Rf_initialize_R(argc,(char **) argv);
if (stat<0) {
fp...
2006 Nov 27
1
R.DLL mapping by P/Invoke
...t("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,*/ CharSet = CharSet.Ansi)]
static extern void R_set_command_line_arguments(int argc, string[] args);
[DllImport("R.DLL", /*CallingConvention = CallingConvention....
2012 Aug 20
0
Problem with initializiing R main loop under Windows (R.dll-version: 2.15.1)
...le = RReadConsoleWin;
RParams.WriteConsoleEx = RWriteConsoleEx;
RParams.WriteConsole = 0;
RParams.CallBack = RDoProcessEvents;
RParams.YesNoCancel = RAskYesNoCancel;
RParams.Busy = RBusy;
// Install own handlers
R_SetParams(&RParams);
// flush the console input buffer
// call to WINAPI: clears all that's in stdin
FlushConsoleInputBuffer(GetStdHandle(STD_INPUT_HANDLE));
// Fake a command line
int argc = 2;
char* argv[2] = { qstrdup ("--no-save"),...
2007 Oct 17
0
Using R.dll in .NET IPC
...t("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,*/ CharSet = CharSet.Ansi)]
static extern void R_set_command_line_arguments(int argc, string[] args);
[DllImport("R.DLL", /*CallingConvention = CallingConvention....
2007 Jun 01
3
Question on the R's C stack limit
Dear r-devel members,
I encountered a C stack limit issue, when I tried to embed R 2.5 into my
application. In the R-exts document, it says:"Note that R's own front ends
use a stack size of 10Mb". I desire to know: is it possible to decrease this
stack size
by modifying R's source code? If it's possible, which part of the source
code is responsible for the issue?
Thank
2003 Oct 23
2
linking to R.dll on Win32 - issues with recent MinGW?
I encountered several strange issues when linking to R.dll on Windows
and I wonder if anyone of the Windows savvy-folks here had seen some of
the issues before and have some explanation.
My Rserve links to R dynamic library. That works perfectly on unix
boxes and worked fairly well with older MinGW and older R (<=1.7.1).
What I do in fact is that I specify
-L$(R_HOME)/bin -lR
when linking.