[Rd] Calling erf function in package NORMT3 produce a R crash on Linux/AMD opteron (PR#9683)

2007-05-14 Thread benjamin . leblanc
Full_Name: Benjamin Leblanc Version: 2.4.1 and 2.5.0 OS: Ubuntu Linux 7.04 AMD64 Submission from: (NULL) (195.83.84.213) Here is an example script that may crash under R with Linux AMD 64 bit platforms library('NORMT3') a <- 1:1000/1000 erf(a) I did several tests: - opensuse 10.2

[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,

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

2009-01-28 Thread Benjamin Leblanc
, "wb"); /* Output the image to the disk file in PNG format. */ gdImagePng(im, pngout); /* Close the files. */ fclose(pngout); /* Destroy the image in memory. */ gdImageDestroy(im); } Prof Brian Ripley a écrit : On Wed, 28 Jan 2009, Benjamin Leblanc wrote: Hello a

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

2009-01-29 Thread Benjamin Leblanc
see any output. On Jan 28, 2009, at 13:44 , Benjamin Leblanc wrote: 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