RobinHankin / permutations

https://robinhankin.github.io/permutations/
5 stars 3 forks source link

Argument `drop` of `shape()` not operating as expected. #43

Open RobinHankin opened 1 year ago

RobinHankin commented 1 year ago
> shape(allcycn(4),drop=FALSE)
[[1]]
[1] 4

[[2]]
[1] 4

[[3]]
[1] 4

[[4]]
[1] 4

[[5]]
[1] 4

[[6]]
[1] 4

> shape(allcycn(4),drop=TRUE)
[[1]]
[1] 4

[[2]]
[1] 4

[[3]]
[1] 4

[[4]]
[1] 4

[[5]]
[1] 4

[[6]]
[1] 4

> 

Above, I would expect drop=TRUE to return a vector. Seems to have no effect here?