Displaying 9 results from an estimated 9 matches for "r_outputfil".
Did you mean:
r_outputfile
2012 May 11
1
Replacements for stdout and stderr guaranteed to be open in all versions of R
...le as one of its arguments. I had set this file handle to
stdout, but now R check NOTEs the presence of stdout, and the CRAN
maintainers asked me to get rid of these NOTEs.
Including the following defines means the checks are passed on CRAN:
#ifdef WIN32
extern FILE * R_Consolefile;
extern FILE * R_Outputfile;
#else
#include <Rinterface.h>
#fi
#undef stderr
#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_Consolef...
2006 Sep 29
1
Possible bug in Rcons_vprintf
In R-2-4-branch r39548, Rcons_vprintf is called from stdout_vfprintf
when R_Outputfile is NULL. When called and output is greater than
R_BUFSIZE, output is truncated to R_BUFSIZE. Here's a one-line fix:
Index: src/main/printutils.c
===================================================================
--- src/main/printutils.c (revision 39548)
+++ src/main/printutils.c...
1999 Aug 26
0
use dyn.load to redefine R internal fns?
I would like to redefine some R print functions (Rprintf for example) so
that they don't print to stdout, but save the output in a global string
array. I can compile and link my definition of Rprintf into a library and
load it with dyn.load. I don't get an error message, but afterwards the
original function is still valid, my new version isn't executed.
Is there a way to change R
2006 Oct 07
1
Request to open up getConnection to embedded interface
...ce c generated connection objects onto the Connection array and
then use sink(), but that only works for stdout. Another way is to
enhance the default stdin, stdout, stderr reading and writing routines
to test for the existence of user provided routines, similar to the way
stdout_vfprintf tests R_Outputfile.
Jeff
--
http://biostat.mc.vanderbilt.edu/JeffreyHorner
2009 Sep 03
1
Running an expression 1MN times using embedded 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) {
fprintf(stderr,"Failed to initialize embedded R!:%d\n",stat);
return(-2);
}
R_Outputfile = NULL;
R_Consolefile = NULL;
R_Interactive = (Rboolean)1;
// ptr_R_ShowMessage = Re_ShowMessage;
// ptr_R_WriteConsoleEx =Re_WriteConsoleEx;
// ptr_R_WriteConsole = NULL;
// ptr_R_ReadConsole = NULL;
return(0);
}
int main(int argc, char **argv){
if (embedR(argc,argv))...
2010 Jul 21
1
Plot window does not update in embedded code
...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;
}
2007 Apr 03
2
R callbacks
Hi,
I'm trying to understand (mostly from the R-exts manual) how to use
the callbacks declared in Rinterface.h. As a first attempt, I'm trying
to redefine ptr_R_WriteConsole in a very trivial manner. Here's my
code:
---------------
$ cat altr.c
int Rf_initialize_R(int ac, char **av);
#define R_INTERFACE_PTRS 1
#include <Rinterface.h>
extern int R_running_as_main_program;
2010 May 06
1
R on kdeedu-svn library problem
...ndR()':
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:194: undefined
reference to `Rf_endEmbeddedR'
CMakeFiles/cantor_rserver.dir/rcallbacks.o: In function
`setupCallbacks(RServer*)':
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rcallbacks.cpp:40: undefined
reference to `R_Outputfile'
$SOURCES/kdeedu/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: undef...
2007 May 30
5
Possible changes to connections
When I originally implemented connections in R 1.2.0, I followed the model
in the 'Green Book' closely. There were a number of features that forced
a particular implementation, and one was getConnection() that allows one
to recreate a connection object from a number.
I am wondering if anyone makes use of this, and if so for what?
It would seem closer to the R philosophy to have