<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:12pt">> From: Douglas Bates <bates@stat.wisc.edu><br><br>> On Tue, Nov 1, 2011 at 3:32 PM, Michael Hannon <jm_hannon@yahoo.com> wrote:<br>>><br>>><br>>> Greetings. It appears that there is a limit of 20 items in a list created<br>>> by;<br>>><br>>> Rcpp::List:create<br>>> [...]<br><br>> Or go into Rcpp/inst/include/Rcpp/generated/vector__create.h and<br>> extend the limit of 20.<br>> <br>> In most cases if your list is getting very long you might want to<br>> consider another data structure or using something other than the<br>> ::create method for the List class to create your list. The ::create<br>> method is a convenience construction to be able to quickly generate a<br>> List or other type of Vector (in the Rcpp sense)
object, including<br>> assigning names. It would be unusual to hard-code a call to<br>> List::create with more than 20 elements.<br><br>Yes, I see. My colleague and I are just starting to use Rcpp and are in the<br>process of converting a mildly complicated piece of R code. We got into the<br>habit of using Rcpp::List:create as a kind of glorified "cout", just so we<br>could compare the values returned by C++ against the values returned by R.<br>We're not actually using the structure for any of the calculations.<br><br>Thanks for your help.<br><br>-- Mike<br><br></div></body></html>