search for: r_writeconsoleex

Displaying 2 results from an estimated 2 matches for "r_writeconsoleex".

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) {...
2009 Oct 24
2
warnings details
I am running R as an invisible subprocess in another program (RExcel). Using try I can catch errors and print the errors produced by an R statement. Is there a way to know if running a statement caused a warning message? last.warning gives me the last warning, but I do not have any indication what the statement was that caused the message. I can of course store last warning before I run a