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 10a02e2 commit 29980a7Copy full SHA for 29980a7
inst/include/Rcpp/String.h
@@ -365,9 +365,16 @@ namespace Rcpp {
365
366
367
inline SEXP get_sexp_impl() const {
368
+
369
+ // workaround for h5 package (currently deprecated so updates
370
+ // to CRAN may not be timely)
371
+#ifdef __H5Cpp_H
372
+ return Rf_mkCharCE(buffer.c_str(), enc);
373
+#else
374
if (buffer.find('\0') != std::string::npos)
375
throw embedded_nul_in_string();
376
return Rf_mkCharLenCE(buffer.c_str(), buffer.size(), enc);
377
+#endif
378
}
379
380
inline SEXP get_sexp() const {
0 commit comments