smart_read() uses readr::read_delim() which uses vroom::vroom(delim = NULL), which results in errors when guessing the delimiter in R devel (August 2022). The issue can be traced back to gsub():
Error in `gsub("\"[^\"]*\"", "", lines)`: input string 3 is invalid
which was changed on 7 July 2022:
Regular expression functions now check more thoroughly whether their inputs are valid strings (in their encoding, e.g. in UTF-8).
smart_read()
usesreadr::read_delim()
which usesvroom::vroom(delim = NULL)
, which results in errors when guessing the delimiter in R devel (August 2022). The issue can be traced back togsub()
:which was changed on 7 July 2022: