On 09/17/2012 03:02 PM, Dirk Eddelbuettel wrote:
You are once again tripping over as<>() and wrap(). You_must_ use as<int> as the following working example:
Right. Is there a rule of thumb to determine when we need as<>()? I have other examples where it seems to work without it, but I can't seem to see a pattern. Or should you just use it all of the time whether it is needed or not? Thanks! -- Rodney Sparapani, PhD Center for Patient Care and Outcomes Research Sr. Biostatistician http://www.mcw.edu/pcor 4 wheels good, 2 wheels better! Medical College of Wisconsin (MCW) WWLD?: What Would Lombardi Do? Milwaukee, WI, USA _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel