Skip to content

Include function name in error #36

@hadley

Description

@hadley
f <- function(x, ...) {
  ellipsis::check_dots_used(action = rlang::warn)
}
f(z = 1)
#> Warning: 1 components of `...` were not used.
#> 
#> We detected these problematic arguments:
#> * `z`
#> 
#> Did you misspecify an argument?

Can we make it this?

#> Warning: 1 components of `f(...)` were not used.

Probably also worth a refresh here to use our more modern style:

#> Warning: Some arguments in `f(...)` were not used.
#> x Unused arguments: `z`
#> i Did you misspecify an argument?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions