Skip to content
Prev 1928 / 63424 Next

"integer" mod ein .C/.Fortran call

I have just discovered that mode integer in C maps to int in C and integer
in Fortran, whereas it maps to long in C loaded in to S.  This seems
undocumented in R, and the base R code is not consistent in its usage, let
alone user packages.

Can those of you who have long != int tell us what your machines use, and
also if Fortran integer is equal to C int (which is assumed in a lot
of places).

I believe that on DEC Alpha S-PLUS uses 64-bit "integer", corresponding to
C long and Fortran integer.  I understand R is trying to use 32 bits for
R "integer", C int and Fortran integer.

Brian