[Rcpp-devel] Rcpp::List lost attributes after updating elements
On 9 December 2012 at 14:44, Jiqiang Guo wrote:
| Well, those are good points. ?But I just do not know the size of my list a | priori, so I have to grow it along the way. ?It might not be optimal, but I | suppose as you said it is just suboptimal (i.e., not that bad).? Sometimes you can change your design. You could for example grow STL objects which copy better which the change, and only convert to Rcpp / R objects at the end. And you could keep your attributes in a second object and only attach at the end. Sometimes it's fine to use bandaid... Dirk
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com