Re: [Rd] File and console output does not work in C code

2009-01-29 Thread Benjamin Leblanc
Hi Simon, Yes, absolutely right, I just did this (...) mistake using copy/paste and forgetting to rename the called function. Thank you for the help and the reference to graphic packages. Benjamin Simon Urbanek a écrit : Ben, just FYI - GDD package uses libgd to create R graphics images so

Re: [Rd] File and console output does not work in C code

2009-01-28 Thread Benjamin Leblanc
Here are more specific details: I use GNU/Linux Ubuntu 8.04 on an x86_64 workstation. R environnement was compiled from 2.8.0 sources. Below is a part of my C code to test the file I/O. When compiled as a standalone executable it prints "Test1" on the console and generates "test.txt" and "t

Re: [Rd] File and console output does not work in C code

2009-01-28 Thread Prof Brian Ripley
On Wed, 28 Jan 2009, Benjamin Leblanc wrote: Hello all, I am getting into trouble when trying to do standard I/O from a C function called within R environment. This function is written in a small C library that is loaded whith dyn.load() and called in R via the .C() interface. I need to debu

[Rd] File and console output does not work in C code

2009-01-28 Thread Benjamin Leblanc
Hello all, I am getting into trouble when trying to do standard I/O from a C function called within R environment. This function is written in a small C library that is loaded whith dyn.load() and called in R via the .C() interface. I need to debug the C code using a text file for some logs,