diff --git a/r/src/csv.cpp b/r/src/csv.cpp index ca293641807e0..0e1d09fb65e8b 100644 --- a/r/src/csv.cpp +++ b/r/src/csv.cpp @@ -28,7 +28,7 @@ std::shared_ptr 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 csv___ParseOptions__initialize(List_ options) {