Skip to content
Prev 3077 / 10988 Next

[Rcpp-devel] Limit of 20 on length of Rcpp::List::create?

On Tue, Nov 1, 2011 at 3:32 PM, Michael Hannon <jm_hannon at yahoo.com> wrote:
Or go into Rcpp/inst/include/Rcpp/generated/vector__create.h and
extend the limit of 20.

In most cases if your list is getting very long you might want to
consider another data structure or using something other than the
::create method for the List class to create your list.  The ::create
method is a convenience construction to be able to quickly generate a
List or other type of Vector (in the Rcpp sense) object, including
assigning names.  It would be unusual to hard-code a call to
List::create with more than 20 elements.