MCPcopy Create free account
hub / github.com/apache/arrow / GetBoolOption

Function GetBoolOption

r/src/array_to_vector.cpp:1324–1333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1322}
1323
1324bool 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
1335std::shared_ptr<Converter> Converter::Make(
1336 const std::shared_ptr<ChunkedArray>& chunked_array) {

Callers 6

ExecNode_ScanFunction · 0.85
Ingest_some_nullsMethod · 0.85
MakeMethod · 0.85
MakeMethod · 0.85
MaterializeMethod · 0.85
MakeAltrepVectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected