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

Function csv___ParseOptions__initialize

r/src/csv.cpp:60–72  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

58
59// [[arrow::export]]
60std::shared_ptr<arrow::csv::ParseOptions> csv___ParseOptions__initialize(
61 cpp11::list options) {
62 auto res =
63 std::make_shared<arrow::csv::ParseOptions>(arrow::csv::ParseOptions::Defaults());
64 res->delimiter = cpp11::as_cpp<char>(options["delimiter"]);
65 res->quoting = cpp11::as_cpp<bool>(options["quoting"]);
66 res->quote_char = cpp11::as_cpp<char>(options["quote_char"]);
67 res->double_quote = cpp11::as_cpp<bool>(options["double_quote"]);
68 res->escape_char = cpp11::as_cpp<char>(options["escape_char"]);
69 res->newlines_in_values = cpp11::as_cpp<bool>(options["newlines_in_values"]);
70 res->ignore_empty_lines = cpp11::as_cpp<bool>(options["ignore_empty_lines"]);
71 return res;
72}
73
74// [[arrow::export]]
75SEXP csv___ReadOptions__column_names(

Callers 1

Calls 1

DefaultsFunction · 0.50

Tested by

no test coverage detected