Skip to content

[R] Improve as.Date() error message when supplying several tryFormats #31245

@asfimport

Description

@asfimport

We could use coalesce() to cycle through several {}formats{}. However this would not get us a behaviour identical to base R. For more on this see Jon's comment in the umbrella / parent issue. 

I improved the error message and the behaviour with remain the same. Users will not be able to supply more formats to {}tryFormats{}, but they will be advised to try the specialised parsing functions when they do so.

Reporter: Dragoș Moldovan-Grünfeld / @dragosmg
Assignee: Dragoș Moldovan-Grünfeld / @dragosmg

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-15804. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions