[Rd] How to enable ANSII C checking?

From: Wolski <wolski_at_molgen.mpg.de>
Date: Fri 27 Aug 2004 - 02:48:18 EST


I have run R CMD check on a package on Windows 2000, Linux (Debian), Linux Mandrake. On all of this platforms the check runs without any warning. I send the package to a colleague. He runs R CMD check on his machine and gets errors eg.

mscalibD.c:161: syntax error before `int'
mscalibD.c:165: `i' undeclared (first use in this function)
mscalibD.c:165: (Each undeclared identifier is reported only once

Looking at the sources the answer is simple. His compiler is set to check if the C code is ANSII compliant. On my platforms the compilers are not set to check for this. Why? How can I tell R CMD check to check for this? I would find it usefully if R CMD check behaves with this respect similar on all platforms.


Dipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic

Ihnestrasse 63-73 14195 Berlin       'v'    
tel: 0049-30-83875219               /   \    
mail: wolski_at_molgen.mpg.de        ---W-W----    http://www.molgen.mpg.de/~wolski

R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Aug 27 03:09:14 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:45:10 EST