Suppose I want to iterate over the values of a NumericVector x. If one wants to "future-proof" one's code a bit, I presume the preferred idiom is
for(R_len_t i = 0; i < x.size(); ++i) x[i] = ... as opposed to declaring i to be an int or a size_t. Is that correct? _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
