Hi, I would like to display error messages and warnings which are generated in R in my own GUI. For normal output we simply had to assign a callback function to ptr_R_WriteConsole and ptr_R_ShowMessage. According to google there should be similar function pointers for error messages. Such as ptr_R_WriteErrConsole. However, I could not find this function pointer in my current R installation (R version 2.8.1 (2008-12-22)). Do I need to install a different R version or is there by now a different way to receive those callbacks? Your help will be greatly appreciated! Thanks, Christian
On Tuesday 26 May 2009, Christian Ledergerber wrote:> I would like to display error messages and warnings which are generated in > R in my own GUI. For normal output we simply had to assign a callback > function to ptr_R_WriteConsole and ptr_R_ShowMessage. According to google > there should be similar function pointers for error messages. Such as > ptr_R_WriteErrConsole. However, I could not find this function pointer in > my current R installation (R version 2.8.1 (2008-12-22)). Do I need to > install a different R version or is there by now a different way to receive > those callbacks?ptr_R_WriteConsoleEx is what you are looking for. And this is the manual you want to look at: http://cran.r-project.org/doc/manuals/R-exts.html . Regards Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20090526/dbbecbd8/attachment.bin>