Closed qinwf closed 8 years ago
I install Rcpp from source, and with this function
// [[Rcpp::export]] SEXP rcpp_hello2(LogicalVector x) { return wrap(x); }
run this will terminate R
> sessionInfo() R version 3.3.0 EXPERIMENTAL (2015-09-22 r69418) Platform: i386-w64-mingw32/i386 (32-bit) Running under: Windows >= 8 x64 (build 9200) locale: [1] LC_COLLATE=Chinese (Simplified)_China.936 [2] LC_CTYPE=Chinese (Simplified)_China.936 [3] LC_MONETARY=Chinese (Simplified)_China.936 [4] LC_NUMERIC=C [5] LC_TIME=Chinese (Simplified)_China.936 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_3.3.0
rcpp_hello2(c(1,2"sd"))
In R 3.2.2, it runs stop() and throws an error in R
stop()
#R 3.2.2 > rcpp_hello2("sd") Error: not compatible with requested type
This may only be an issue for RStudio, I try it on RGui, and it works fine on R 3.3.0 EXPERIMENTAL.
I install Rcpp from source, and with this function
run this will terminate R
In R 3.2.2, it runs
stop()
and throws an error in R