[Rcpp-devel] Negative vector lengths from rep_each

Dirk Eddelbuettel edd at debian.org
Mon Oct 29 19:56:45 CET 2018


On 29 October 2018 at 13:00, Barth Riley wrote:
| Apologies for the misunderstanding.

No worries. This can be tricky, and R (and Rcpp) make simple(r) things easy
but sometimes you need to step back and review whether the tooling is
appropriate.

R had an identified weakness with int-based indexing which was addressed in R
itself (and also in Rcpp thanks to Qiang Kou's work during a Google Summer of
Code) in most places. Maybe we have a leftover here but it is a little hard
to tell. Also multi-dim arrays are somewhat less commonly used so you may be
checking some untertested aspects.  But in short: start by checking your
index values.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list