Jordi, 1) Please edit your replies. There is no need to return all the prior emails. 2) Please read the vignette 'Rcpp Attributes'. The vignette has all the answers. In short you REALLY do not want sourceCpp in a package. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org