[[Rcpp::export]]
| 210 | |
| 211 | // [[Rcpp::export]] |
| 212 | SEXP testNullableIsUsable(const Nullable<NumericMatrix>& M) { |
| 213 | if (M.isUsable()) { |
| 214 | return M.clone(); |
| 215 | } else { |
| 216 | return R_NilValue; |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | // [[Rcpp::export]] |
| 221 | String testNullableString(Rcpp::Nullable<Rcpp::String> param = R_NilValue) { |