[Rcpp-devel] Rcpp example that crashes on 64 bit Windows

Dirk Eddelbuettel edd at debian.org
Thu Aug 11 17:18:59 CEST 2016


To follow-up, if we avoid the cast this works just find as you'd expect:

R> cppFunction("NumericVector myrunif() { return floor(runif(1000000)); }")
R> for (i in 1:100) ignoreme <- myrunif()
R> 

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list