Join GitHub today
Include filename in warning message when parsing of values fails #581
I read a large number of files using lapply and read_csv with fixed coltypes:
Occasionally there is a non-numeric entry in a column that should parse as double and I get a warning message like this:
However, from this warning I do not know in which of the dozens, sometimes hundreds of files the parsing failed.
Would it be possible to include the filename for the failed parsing in the warning message?
I started working on this, it is going to require quite extensive changes to implement as none of the collectors or parsers store the filename information. We need to think about what internal objects should store the filename information and which should not. In particular I am pretty sure we need to avoid including the filename in the Token object, as that would likely slow parsing considerably.