Displaying 5 results from an estimated 5 matches for "get_r_home".
2010 Sep 29
0
getDLLVersion
...rning to write R extensions in C and to embed R in C.
I was trying to get through the example in the help page on calling the .dll
directly (
http://cran.r-project.org/doc/manuals/R-exts.html#Calling-R_002edll-directly
).
When I compile I consistently get the error that getDLLVersion() as well as
get_R_HOME() and getRUser() are undefined references.
These are defined in Rembedded.h ln60 as:
extern char *getDLLVersion(void), *getRUser(void), *get_R_HOME(void);
I included Rembedded.h from the example.
I searched the entire R directory for the string getDLLVersion and only
found it in Rembedded.h and...
2008 Mar 19
1
R_ParseVector problem: it's cutting off after the decimal point
...stria.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 = myReadConsole;
// function which writes output from R to a console...
2006 Nov 27
1
R.DLL mapping by P/Invoke
...CharSet.Ansi)]
[return: MarshalAs(UnmanagedType.LPStr)]
static extern string getDLLVersion();
[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)]
[return: MarshalAs(UnmanagedType.LPStr)]
static extern string get_R_HOME();
[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)]
[return: MarshalAs(UnmanagedType.LPStr)]
static extern string getRUser();
//- R Start Up
[DllImport("R.DLL", /*CallingConvention = CallingCon...
2012 Aug 20
0
Problem with initializiing R main loop under Windows (R.dll-version: 2.15.1)
...Params);
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 = get_R_HOME ();
RParams.home = getRUser ();
RParams.CharacterMode = LinkDLL; // RGui;
RParams.ShowMessage = RShowMessage;
RParams.ReadConsole = RReadConsoleWin;
RParams.WriteConsoleEx = RWriteConsoleEx;
RParams.WriteConsole = 0;...
2007 Oct 17
0
Using R.dll in .NET IPC
...CharSet.Ansi)]
[return: MarshalAs(UnmanagedType.LPStr)]
static extern string getDLLVersion();
[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)]
[return: MarshalAs(UnmanagedType.LPStr)]
static extern string get_R_HOME();
[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)]
[return: MarshalAs(UnmanagedType.LPStr)]
static extern string getRUser();
//- R Start Up
[DllImport("R.DLL", /*CallingConvention = CallingCon...