[datatable-help] Misuse of LENGTH in data.table

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Apr 8 08:28:53 CEST 2012


Matthew,

Rinternals.h has a function SETLENGTH to set lengths.  This is required 
even if USE_RINTERNALS is defined, and shortly in R-devel (as part of 
adding support for vector of more than 2 billion elements) your code 
will fail to compile.

Please change it to use SETLENGTH: I believe you can test in any version 
of R by simply not defining USE_RINTERNALS.

Brian Ripley

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the datatable-help mailing list