Skip to content

Does deprecate_stop() need a call argument? #156

@DavisVaughan

Description

@DavisVaughan

Probably related to #131

It seems like the function that caused the error is never actually shown in the error message. I was expecting to see Error in fn(): here.

Is the env argument enough? Or do we need call separately?

fn <- function() {
  lifecycle::deprecate_stop(
    when = "1.0.0",
    what = I("Supplying `...` without names"),
    details = "foo"
  )
}

fn()
#> Error:
#> ! Supplying `...` without names was deprecated in <NA> 1.0.0 and is now
#>   defunct.
#> ℹ foo

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions