Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yutannihilation opened this issue Oct 1, 2015 · 0 comments
Closed

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

yutannihilation opened this issue Oct 1, 2015 · 0 comments

Comments

@yutannihilation
Copy link
Member

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))
@hadley hadley closed this as completed in c707dbe Nov 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant