We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36cd8b9 commit 52504d6Copy full SHA for 52504d6
inst/include/Rcpp/internal/wrap.h
@@ -921,7 +921,10 @@ inline SEXP module_wrap<SEXP>( const SEXP& obj ){
921
}
922
923
inline SEXP wrap(const char* const v ){
924
- return Rf_mkString(v) ;
+ if (v != NULL)
925
+ return Rf_mkString(v) ;
926
+ else
927
+ return R_NilValue;
928
929
930
/**
0 commit comments