Skip to content
Prev 2335 / 10988 Next

[Rcpp-devel] Rcpp::wrap seg fault (when called with a NULL pointer)

Le 24/05/11 13:46, Dirk Eddelbuettel a ?crit :
And you start sounding like Steve Jobs :-)
Perhaps we can bring the test inside Rcpp in this wrap :

inline SEXP wrap(const char* const v ){
	return Rf_mkString(v) ;
}

Not sure what the result ought to be though: NULL, NA, "" ?

Romain