Skip to content

allow_rename = FALSE still allows renaming with partially renamed selections #305

Description

@DavisVaughan
library(rlang)
library(tidyselect)

eval_select(expr(c(foo = mpg, bar = cyl)), mtcars, allow_rename = FALSE)
#> Error:
#> ! Can't rename variables in this context.

# uh oh
eval_select(expr(c(foo = mpg, cyl)), mtcars, allow_rename = FALSE)
#> foo cyl 
#>   1   2

Created on 2022-08-26 by the reprex package (v2.0.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    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