Skip to content

Commit

Permalink
going through CharacterVector makes sure this is a character vector
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Jan 2, 2019
1 parent 2585501 commit 6e74003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r/src/csv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ std::shared_ptr<arrow::csv::ReadOptions> csv___ReadOptions__initialize(List_ opt
return res;
}

inline char get_char(SEXP x) { return CHAR(STRING_ELT(x, 0))[0]; }
inline char get_char(CharacterVector x) { return CHAR(STRING_ELT(x, 0))[0]; }

// [[Rcpp::export]]
std::shared_ptr<arrow::csv::ParseOptions> csv___ParseOptions__initialize(List_ options) {
Expand Down

0 comments on commit 6e74003

Please sign in to comment.