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

List method requires named vectors #77

Closed
gprezza opened this issue Nov 23, 2020 · 2 comments
Closed

List method requires named vectors #77

gprezza opened this issue Nov 23, 2020 · 2 comments

Comments

@gprezza
Copy link

gprezza commented Nov 23, 2020

This looks too trivial, but I can't seem to figure out if I am doing something wrong.

If using a list as input, the manual says: "Vectors in the list do not need to be named". However, this doesn't seem to be true:

my_list<- list(c("a","b","c"), c("a","d","e"))
euler(my_list)

gives:

Error in parse_list(combinations) : 
  !is.null(attr(combinations, "names")) is not TRUE

while

my_list <- list(c("a","b","c"), c("a","d","e"))
names(my_list) <- c("name1", "name2")
euler(my_list)

runs succesfully.

Does the manual need updating?

@jolars jolars closed this as completed in 3d888ab Nov 23, 2020
@jolars
Copy link
Owner

jolars commented Nov 23, 2020

you're right, thanks @gprezza !

@gprezza
Copy link
Author

gprezza commented Nov 23, 2020

You're welcome!

@gprezza gprezza changed the title List method requires named vecotrs List method requires named vectors Nov 23, 2020
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

2 participants