Skip to content

Partial argument matches in ceiling_date #672

Description

@wch

For example:

options(
  warnPartialMatchArgs = TRUE,
  warnPartialMatchAttr = TRUE,
  warnPartialMatchDollar = TRUE
)

ceiling_date(Sys.time(), "day")
#> Warning in (function (object, years = integer(), months = integer(), days = integer(),  :
#>   partial argument match of 'day' to 'days'
#> Warning in (function (object, years = integer(), months = integer(), days = integer(),  :
#>   partial argument match of 'hour' to 'hours'
#> Warning in (function (object, years = integer(), months = integer(), days = integer(),  :
#>   partial argument match of 'minute' to 'minutes'
#> Warning in (function (object, years = integer(), months = integer(), days = integer(),  :
#>   partial argument match of 'second' to 'seconds'
#> [1] "2018-05-12 CDT"

I believe the calls to update() here should have days instead of day, hours instead of hour, and so on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorwipwork in progress

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions