Skip to content

Reconsider unnecessary_lambda_linter() default behaviour #1871

@MichaelChirico

Description

@MichaelChirico
    @MichaelChirico is this recommending you use `map_vec(x, foo, y = y)` instead?

We actually recommend using the anonymous function form rather than using ... to pass named arguments through to foo() now. Using the anonymous function form makes it a little easier to see which arguments belong to which function (i.e. does y belong to map_vec() or foo()?), and tends to give slightly better error messages. See the new documentation of ... at https://purrr.tidyverse.org/reference/map.html for more.

Originally posted by @DavisVaughan in #1866 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions