Displaying 9 results from an estimated 9 matches for "r_consolefil".
Did you mean:
r_consolefile
2012 May 11
1
Replacements for stdout and stderr guaranteed to be open in all versions of R
...to requires an
open FILE handle 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...
2003 Jun 09
1
early R messages to stdout
Hi,
I have an R script that takes its input in the form of command-line
parameters. It works fine, but R complains about every unknown arg with the
"ARGUMENT %s ignored" message, and this goes to stdout instead of stderr
because R_ConsoleFile isn't set yet. Is it really necessary to process all
command line args before setting R_ConsoleFile? It seems that only Aqua
systems care about their arguments when choosing the console file.
I've attached a diff (against 1.7.0) that fixes this issue, so that non-Aqua
unix folks can...
2003 Jun 09
1
early R messages to stdout
Hi,
I have an R script that takes its input in the form of command-line
parameters. It works fine, but R complains about every unknown arg with the
"ARGUMENT %s ignored" message, and this goes to stdout instead of stderr
because R_ConsoleFile isn't set yet. Is it really necessary to process all
command line args before setting R_ConsoleFile? It seems that only Aqua
systems care about their arguments when choosing the console file.
I've attached a diff (against 1.7.0) that fixes this issue, so that non-Aqua
unix folks can...
2009 Sep 03
1
Running an expression 1MN times using embedded R
...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))
exit(1);
setup_R...
2010 Jul 21
1
Plot window does not update in embedded code
...ng_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
...beddedR'
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: undefined
reference to `ptr_R_WriteConsoleEx'
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rcallbacks.cpp:45...
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
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...http.lo sock.lo sockconn.lo
ld:
Warning: Unresolved:
getSelectedHandler
R_InputHandlers
R_PolledEvents
R_wait_usec
R_NaInt
Rf_error
Rf_warning
Rprintf
REprintf
R_ExpandFileName
R_NilValue
Rf_allocVector
Rf_asInteger
Rf_asLogical
Rf_GetOption
Rf_install
Rf_isString
Rf_length
Rf_protect
Rf_unprotect
R_Consolefile
R_Busy
Rf_checkArity
R_fopen
init_con
R_setInternetRoutines
dummy_vfprintf
gmake[5]: Entering directory `/soft/R/R-1.5.1/src/modules/internet'
gmake[5]: Leaving directory `/soft/R/R-1.5.1/src/modules/internet'
gmake[4]: Leaving directory `/soft/R/R-1.5.1/src/modules/internet'
gmake[3]:...