Skip to content

.name_repair does not accept a function in read_ #684

@olivroy

Description

@olivroy

It only works with the string

I tested with .dta and .sav and I get the same error message.

read_dta("file.dta", .name_repair = make.names)
#> Error expected string vector of length 1.

In the doc., it says that it accepts rlang functions.

Edit : due to @inheritParams tibble::as_tibble, but from PR #478, we see that this argument is only for passing the string argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions