search for: charactermod

Displaying 6 results from an estimated 6 matches for "charactermod".

Did you mean: charactermode
2012 May 11
1
Replacements for stdout and stderr guaranteed to be open in all versions of R
...tderr #define stderr R_Consolefile #undef stdout #define stdout R_Outputfile However, this does not work on Rgui.exe, when the above leads to a crash. Looking at http://svn.r-project.org/R/trunk/src/gnuwin32/system.c it would appear that R_Consolefile and R_Outputfile only point to open files when CharacterMode == RTerm, not in GUI mode. Therefore my question is, are there any replacements for stdout and stderr that work across all versions of R? All the best, David. -- David C Sterratt, Research Fellow. Tel: (+44) 131 651 1739 Institute for Adaptive and Neural Computation School of Informatics, Univ...
2008 Mar 19
1
R_ParseVector problem: it's cutting off after the decimal point
...========================= // 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 = myReadConsole; // function which writes output from R to a console Rp->WriteConsole = NULL; Rp->WriteConsoleEx = myWriteConsoleEx; // called during i/o, eval, graphics in ProcessEven...
2006 Nov 27
1
R.DLL mapping by P/Invoke
...[MarshalAs(UnmanagedType.FunctionPtr)] public dgShowMessage showMessage; [MarshalAs(UnmanagedType.FunctionPtr)] public dgYesNoCancel yesNoCancel; [MarshalAs(UnmanagedType.FunctionPtr)] public dgBusy busy; public RUIMode characterMode; }; //[UnmanagedFunctionPointer(CallingConvention.Cdecl)] < .Net 2.0 delegate int dgReadConsole( [MarshalAs(UnmanagedType.LPStr)]string prompt, IntPtr buf, int len, int addtohistory ); //[UnmanagedFunctionPointer(Calling...
2012 Aug 20
0
Problem with initializiing R main loop under Windows (R.dll-version: 2.15.1)
...tive = TRUE; RParams.R_Verbose = FALSE; RParams.R_Slave = FALSE; RParams.RestoreAction = SA_RESTORE; RParams.SaveAction = SA_NOSAVE; RParams.rhome = get_R_HOME (); RParams.home = getRUser (); RParams.CharacterMode = LinkDLL; // RGui; RParams.ShowMessage = RShowMessage; RParams.ReadConsole = RReadConsoleWin; RParams.WriteConsoleEx = RWriteConsoleEx; RParams.WriteConsole = 0; RParams.CallBack = RDoProcessEvents; RParams.YesNoCancel = RAsk...
2007 Oct 17
0
Using R.dll in .NET IPC
...[MarshalAs(UnmanagedType.FunctionPtr)] public dgShowMessage showMessage; [MarshalAs(UnmanagedType.FunctionPtr)] public dgYesNoCancel yesNoCancel; [MarshalAs(UnmanagedType.FunctionPtr)] public dgBusy busy; public RUIMode characterMode; }; //[UnmanagedFunctionPointer(CallingConvention.Cdecl)] < .Net 2.0 delegate int dgReadConsole( [MarshalAs(UnmanagedType.LPStr)]string prompt, IntPtr buf, int len, int addtohistory ); //[UnmanagedFunctionPointer(Calling...
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