New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autodetection of date format is confused by underscores #442

Closed
krlmlr opened this Issue Jun 24, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@krlmlr
Member

krlmlr commented Jun 24, 2016

> readr::read_csv("a\n2_15_3")
Warning: 1 parsing failure.
row col   expected actual
  1   a valid date 2_15_3
# A tibble: 1 x 1
       a
  <date>
1   <NA>

Why does readr think "2_15_3" is a date?

@hadley

This comment has been minimized.

Member

hadley commented Jul 10, 2016

This is related to #463

@hadley hadley modified the milestone: 0.3.0 Jul 13, 2016

hadley added a commit that referenced this issue Jul 13, 2016

Implement %AD and %AT flexible parsers
* And use in the date and time formats in the default locale

* Fix bug in consumeInteger: previously it did not check that exactly n character were consumed

Fixes #442.

@hadley hadley closed this in 095bd4a Jul 13, 2016

@lock lock bot locked and limited conversation to collaborators Sep 25, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.