search for: r_writeconsol

Displaying 17 results from an estimated 17 matches for "r_writeconsol".

Did you mean: r_writeconsole
2005 Sep 12
1
ptr_R_EditFile, R_WriteConsole, and R_ShowMessage
...initializes all the callbacks to the standard values. 2) That aside, what is the policy for R_ShowMessage? Can I assume all messages being shown this way are errors of some sort? Or could there also be mere informational messages (which in a GUI would be presented in slightly different ways)? R_WriteConsole (ptr_R_WriteConsole): This is a great callback. It will allow me to get rid of my hacky sinks (currently I use a sink to a file to retrieve the output). Even better would be an additional callback ptr_R_WriteErr. Is there any particular reason, why this does not exist? Could it be added? Thank...
2006 Sep 29
1
Possible bug in Rcons_vprintf
...one-line fix: Index: src/main/printutils.c =================================================================== --- src/main/printutils.c (revision 39548) +++ src/main/printutils.c (working copy) @@ -638,7 +638,7 @@ res = R_BUFSIZE; } #endif /* HAVE_VA_COPY */ - R_WriteConsole(p, strlen(buf)); + R_WriteConsole(p, strlen(p)); #ifdef HAVE_VA_COPY if(usedRalloc) vmaxset(vmax); if(usedVasprintf) free(p); Jeff -- http://biostat.mc.vanderbilt.edu/JeffreyHorner
2005 Oct 10
2
Catching warning and error output
...calls of R_tryEval. So effectively, I'd once again be back at 3a. What I would like to have: Of course there would be many different ways to accomplish this. Here are some solutions I can think of: 1) In my programmers' dream, there'd simply be three callbacks that I can override: R_WriteConsole (exists), R_WriteWarning, and R_WriteError. R_WriteWarning, and R_WriteError would be called from vwarningcall_dflt, and verrorcall_dflt, respectively, instead of REprintf. The default implementation of those, would of course simply call REprintf. Drawbacks: a) REprintf is available for use in...
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
2005 Oct 17
1
RFC: API to allow identification of warnings and errors in the output stream
...ich I will describe in more detail below: A) http://rkward.sourceforge.net/temp/classify_output_patch.diff B) http://rkward.sourceforge.net/temp/classify_output_test.diff Description of and rationale for patch A: This patch does two things: 1) It adds a function R_WriteErrConsole corresponding to R_WriteConsole. Also, a corresponding interface pointer ptr_R_WriteErrConsole is added. I think this change is highly consistent with output handling in R in general. There are different sink ()s for "output" and "message", there is the distinction between Rprintf/Rvprintf and REprintf/REv...
2006 Feb 03
1
Interfacing C-code (gets and printf) under WINDOWS (Visual C++)
...ment. I started looking for an answer on the WEB and intercepted some pieces of answers ... but I did not succeed in getting a workable solution. This is the reason why I put this open question here today. I did not find lots of information about the gets solution. Finally, I have chosen to use R_WriteConsole and R_ReadConsole which seemed to be promising solutions. I discovered an information saying that starting R-2.0.1, the include file R-interface.h could help me. This is the reason why I downloaded the latest version available on the R site (R-2.2.1). Unfortunately, I did not find such a file...
2010 Jul 21
1
Plot window does not update in embedded code
...I am working under Linux. However, I also want to be able to run my code under windows, so I hope there is a cross-platform solution. Thanks in advance. Regards, Jan van der Laan ===== The example code ===== #include <iostream> #include <iomanip> #include <string> static void R_WriteConsoleEx (const char *buf, int buflen, int otype) { std::string output(buf, buflen); std::cout << output; } static void R_WriteConsole (const char *buf, int buflen) { R_WriteConsoleEx(buf, buflen, 0); } static int R_ReadConsole (const char *prompt, unsigned char *buf, int buflen, int hist)...
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
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
2000 Jun 21
1
Port of R header files to Delphi
I'm in the process of porting R header files to Delphi. The short term aim is to be able to make calls into the R.dll from Delphi; the longer term aim is to play around with writing a Windows front-end with some of the features of the S-PLUS environment (e.g. scripts), and other features from other IDEs I've used (e.g. watch windows, popup values of variables selected by mouse, etc.)
1998 Mar 15
5
R-beta: R with gnuwin32
...h is not the gnu rl one? (d2) Have someone tried to use some free regex library under mingw32? (e) The last point is a proposal for a medium term project. The modifications that I made were necessary to update the windows sources to the changes made in the system interface (R_ReadConsole, R_WriteConsole,....). Now, the gnuplot people has developed a layer between stdio and a windows console (a graphics not a ms-dos one). In this way, for example, just doing some #undef and some #define, you can printf on the console. They also have a version of readline. If we borrow the layer we can hope to use...
1998 Mar 15
5
R-beta: R with gnuwin32
...h is not the gnu rl one? (d2) Have someone tried to use some free regex library under mingw32? (e) The last point is a proposal for a medium term project. The modifications that I made were necessary to update the windows sources to the changes made in the system interface (R_ReadConsole, R_WriteConsole,....). Now, the gnuplot people has developed a layer between stdio and a windows console (a graphics not a ms-dos one). In this way, for example, just doing some #undef and some #define, you can printf on the console. They also have a version of readline. If we borrow the layer we can hope to use...
2007 Jan 30
1
Solaris 10 compilation issue
...fourier.o Rf_pweibull arithmetic.o Rf_qweibull arithmetic.o Rf_rweibull random.o Rf_dweibull arithmetic.o libintl_nl_default_dirname ../extra/intl/libintl.a(bindtextdom.o) R_WriteConsole printutils.o R_ResetConsole errors.o BZ2_bzWriteClose connections.o gzclose connections.o signrank_free registration.o gzwrite connections.o pcre_compile...
2007 Jan 30
1
Difficulty with compiling R-2.4.1 on solaris 10
...fourier.o Rf_pweibull arithmetic.o Rf_qweibull arithmetic.o Rf_rweibull random.o Rf_dweibull arithmetic.o libintl_nl_default_dirname ../extra/intl/libintl.a(bindtextdom.o) R_WriteConsole printutils.o R_ResetConsole errors.o BZ2_bzWriteClose connections.o gzclose connections.o signrank_free registration.o gzwrite connections.o pcre_compile...
2007 Jan 30
0
R Compiling issue
...gammafn arithmetic.o BM_norm_keep RNG.o Rf_gammafn arithmetic.o inflateInit_ ../extra/zlib/libz.a(uncompr.o) fft_work fourier.o Rf_pweibull arithmetic.o Rf_qweibull arithmetic.o Rf_rweibull random.o Rf_dweibull arithmetic.o libintl_nl_default_dirname ../extra/intl/libintl.a(bindtextdom.o) R_WriteConsole printutils.o R_ResetConsole errors.o BZ2_bzWriteClose connections.o gzclose connections.o signrank_free registration.o gzwrite connections.o pcre_compile character.o BZ2_bzReadClose connections.o ld: fatal: Symbol referencing errors. No output written to R.bin make[3]: *** [R.bin] Error 1...
2007 Jan 30
0
Issue with compiling R on solaris 10
...fourier.o Rf_pweibull arithmetic.o Rf_qweibull arithmetic.o Rf_rweibull random.o Rf_dweibull arithmetic.o libintl_nl_default_dirname ../extra/intl/libintl.a(bindtextdom.o) R_WriteConsole printutils.o R_ResetConsole errors.o BZ2_bzWriteClose connections.o gzclose connections.o signrank_free registration.o gzwrite connections.o pcre_compile...
1999 Aug 03
2
compliation problem
Problem compiling R. version: 0.64.2 machine: SGI O2 OS: IRIX6.5 CC cc FC f77 MAKE GNU make 3.75 Here is part of the the output for make. make[2]: Leaving directory `/usr/people/faculty/math/mgass/stage/R/R-0.64.2/src/include' make[2]: Entering directory `/usr/people/faculty/math/mgass/stage/R/R-0.64.2/src/appl' cc -g -OPT:IEEE_NaN_inf=ON -I../include