iNZightVIT / iNZightTools

Functions for integration of iNZight GUI to iNZight packages.
https://inzightvit.github.io/iNZightTools/
1 stars 5 forks source link

Locale + delimiter guessing failure on R-devel #189

Closed tmelliott closed 1 year ago

tmelliott commented 2 years ago

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).
tmelliott commented 1 year ago

Seems to be very specific to the file.