I'd expect that parse_guess would first remove NA strings prior to guessing the type. Otherwise anything with an NA encoded as a string (rather than _NA_character) would not be guessed correctly, as guess_parser does not filter NA strings.
> parse_guess(c("123", NA))
[1] 123 NA
> parse_guess(c("123", "NA"), na="NA")
[1] "123" NA
Notice that it is converting the "NA" to NA, but not prior to parsing.
I'd expect that
parse_guesswould first remove NA strings prior to guessing the type. Otherwise anything with an NA encoded as a string (rather than_NA_character) would not be guessed correctly, asguess_parserdoes not filter NA strings.Notice that it is converting the
"NA"toNA, but not prior to parsing.