Skip to content
Prev 6628 / 10988 Next

[Rcpp-devel] calling R function triggers tryCatch() ???

I will give some concretes next week. For now, i just wanted to hint: 
- mean is a mammoth. Try applying mean_ : 

mean_ <- function(.) .Internal(mean(.))

- by using x(r,_) you are allocating memory at each loop iteration, when we can use just one vector, since all rows are by definition of the same size. 

I will contribute code versions of these hints later. 

Romain

Le 11 oct. 2013 ? 16:27, Hadley Wickham <h.wickham at gmail.com> a ?crit :