我需要将const char*已知长度转换为a Rcpp::RawVector以返回到R.
const char*
Rcpp::RawVector
Rcpp::wrap适用于多种类型,但似乎不起作用char *.
Rcpp::wrap
char *
r rcpp
r ×1
rcpp ×1