Skip to content

duplicate_argument_linter should skip on mutate() calls #1345

Closed
@MichaelChirico

Description

@MichaelChirico

dplyr::mutate() allows sequential updates to variables, e.g.

x %>%
  dplyr::mutate(
    col = gsub("t", "", col),
    col = gsub("\\s+$", "xxx", col)
  )

but duplicate_argument_linter() sees col used twice and throws.

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