several R commands to the embedded R instance. It should compute all values of interest. And the ones I'd want in C++ I'd then transfer one by one using one of the approaches above. Actually, you could even construct a big encompassing list object in R, and pass that. Rcpp then helps you decompose it on the C++ side into individual pieces. More than one way to skin the cat... Cheers, Dirk
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com