jolars/eulerr

List method requires named vectors

Closed this issue · 2 comments

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?

you're right, thanks @gprezza !

You're welcome!