| 1322 | } |
| 1323 | |
| 1324 | bool GetBoolOption(const std::string& name, bool default_) { |
| 1325 | SEXP getOption = Rf_install("getOption"); |
| 1326 | cpp11::sexp call = Rf_lang2(getOption, Rf_mkString(name.c_str())); |
| 1327 | cpp11::sexp res = Rf_eval(call, R_BaseEnv); |
| 1328 | if (TYPEOF(res) == LGLSXP) { |
| 1329 | return LOGICAL(res)[0] == TRUE; |
| 1330 | } else { |
| 1331 | return default_; |
| 1332 | } |
| 1333 | } |
| 1334 | |
| 1335 | std::shared_ptr<Converter> Converter::Make( |
| 1336 | const std::shared_ptr<ChunkedArray>& chunked_array) { |
no outgoing calls
no test coverage detected