Displaying 6 results from an estimated 6 matches for "ptr_r_writeconsoleex".
Did you mean:
ptr_r_writeconsole
2009 Sep 03
1
Running an expression 1MN times using embedded R
...e.h>
#include <R_ext/Rdynload.h>
const int i___ = 1;
#define is_bigendian() ( (*(char*)&i___) == 0 )
extern void (*ptr_R_ShowMessage)(const char *);
extern void (*ptr_R_WriteConsole)(const char *, int);
extern int (*ptr_R_ReadConsole)(char *, unsigned char *, int, int);
extern void (*ptr_R_WriteConsoleEx)(const char *, int , int );
SEXP rh_status(SEXP);
static uint8_t SET_STATUS = 0x02;
static R_CallMethodDef callMethods [] = {
{"rh_status",(DL_FUNC)&rh_status,1},
{NULL, NULL, 0}
};
uint32_t reverseUInt (uint32_t i) {
uint8_t c1, c2, c3, c4;
if (is_bigendian()) {...
2008 Apr 29
2
Calling R from C - part way there but need a push!
...t;?
Help is much appreciated.
Regards, Max
(1) The most likely include file is Rinterface.h and within that the
most likely candidates seem to be:
extern int (*ptr_R_ReadConsole)(const char *, unsigned char *, int,
int);
extern void (*ptr_R_WriteConsole)(const char *, int);
extern void (*ptr_R_WriteConsoleEx)(const char *, int, int);
but it turns out that they assume that R is running the terminal and
these are requests to R to display or read from R's console. R isn't
acting as the back end being given work and returning answers.
(2) Googling "calling r from c" yields precisel...
2010 Jul 21
1
Plot window does not update in embedded code
..."C" {
#define R_INTERFACE_PTRS
#include <Rinterface.h>
int Rf_initialize_R(int ac, char **av); /* in ../unix/system.c */
extern int R_running_as_main_program; /* in ../unix/system.c */
}
int main(int ac, char **av)
{
R_running_as_main_program = 1;
Rf_initialize_R(ac, av);
ptr_R_WriteConsoleEx = &R_WriteConsoleEx;
ptr_R_WriteConsole = &R_WriteConsole;
ptr_R_ReadConsole = &R_ReadConsole;
R_Outputfile = NULL;
R_Consolefile = NULL;
Rf_mainloop(); /* does not return */
return 0;
}
2010 May 06
1
R on kdeedu-svn library problem
...du/cantor/src/backends/R/rserver/rcallbacks.cpp:41: undefined
reference to `R_Consolefile'
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rcallbacks.cpp:43: undefined
reference to `ptr_R_WriteConsole'
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rcallbacks.cpp:44: undefined
reference to `ptr_R_WriteConsoleEx'
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rcallbacks.cpp:45: undefined
reference to `ptr_R_ShowMessage'
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rcallbacks.cpp:46: undefined
reference to `ptr_R_Busy'
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rcallbacks.cpp:47: undefined...
2007 Apr 24
0
R 2.5.0 is released
...s str2type, type2char and type2str are now available in
Rinternals.h.
o Added support for Objective C in R and packages (if available).
o R_ParseVector() has a new 4th argument 'SEXP srcfile' allowing
source references to be attached to the returned expression list.
o Added ptr_R_WriteConsoleEx callback which allows consoles to
distinguish between regular output and errors/warnings.
To ensure backward compatibility it is only used if
ptr_R_WriteConsole is set to NULL.
UTILITIES
o Additional Sweave() internal functions are exported to help
writing new drivers, and RweaveLatexRun...
2007 Apr 24
0
R 2.5.0 is released
...s str2type, type2char and type2str are now available in
Rinternals.h.
o Added support for Objective C in R and packages (if available).
o R_ParseVector() has a new 4th argument 'SEXP srcfile' allowing
source references to be attached to the returned expression list.
o Added ptr_R_WriteConsoleEx callback which allows consoles to
distinguish between regular output and errors/warnings.
To ensure backward compatibility it is only used if
ptr_R_WriteConsole is set to NULL.
UTILITIES
o Additional Sweave() internal functions are exported to help
writing new drivers, and RweaveLatexRun...