Skip to content

update_list cannot update element if the name is "x" #98

Description

@yutannihilation

I know everything is ok if the element name is not "x", which is the same name of the formal argument...

update_list(list(x = 1), x = 2)
#> Error: is.list(x) is not TRUE

Is it possible to use a list or named character vector instead?

update_list(list(x = 1), list(x = 2))
update_list(list(x = 1), c(x = 2))

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