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

pillar_num and logical vectors cause (potential?) issues #630

Closed
nikosbosse opened this issue Mar 2, 2023 · 0 comments · Fixed by #632
Closed

pillar_num and logical vectors cause (potential?) issues #630

nikosbosse opened this issue Mar 2, 2023 · 0 comments · Fixed by #632

Comments

@nikosbosse
Copy link

I was trying to multiply a pillar_num vector with a logical vector, which resulted in the following error:

> pillar::num(c(1:3)) * c(TRUE, TRUE, FALSE)
Error in vec_arith.pillar_num.default("*", e1, e2) : 
  is.numeric(y) is not TRUE

Since c(1:3) * c(TRUE, TRUE, FALSE) works fine I was expecting the above to work as well. I wasn't quite sure if the above failing is expected behaviour or a bug, so I'm flagging it just in case. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant