<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:12pt">&gt; From: Douglas Bates &lt;bates@stat.wisc.edu&gt;<br><br>&gt; On Tue, Nov 1, 2011 at 3:32 PM, Michael Hannon &lt;jm_hannon@yahoo.com&gt; wrote:<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Greetings.&nbsp; It appears that there is a limit of 20 items in a list created<br>&gt;&gt; by;<br>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Rcpp::List:create<br>&gt;&gt;&nbsp; [...]<br><br>&gt; Or go into Rcpp/inst/include/Rcpp/generated/vector__create.h and<br>&gt; extend the limit of 20.<br>&gt; <br>&gt; In most cases if your list is getting very long you might want to<br>&gt; consider another data structure or using something other than the<br>&gt; ::create method for the List class to create your list.&nbsp; The ::create<br>&gt; method is a convenience construction to be able to quickly generate a<br>&gt; List or other type of Vector (in the Rcpp sense)
 object, including<br>&gt; assigning names.&nbsp; It would be unusual to hard-code a call to<br>&gt; List::create with more than 20 elements.<br><br>Yes, I see.&nbsp; 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.&nbsp; 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>