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

percent errors when multiple, separated "Infs" are given as input #265

Closed
dkesh opened this issue Apr 3, 2020 · 1 comment
Closed

percent errors when multiple, separated "Infs" are given as input #265

dkesh opened this issue Apr 3, 2020 · 1 comment

Comments

@dkesh
Copy link

dkesh commented Apr 3, 2020

Using version 1.1.0

This was originally submitted as a comment to #257, but @hadley found that it was unrelated.

> percent( Inf )
[1] "Inf"
> percent( c(Inf, Inf) )
[1] "Inf" "Inf"
> percent( c(Inf, 2) )
[1] "Inf"  "200%"
> percent( c(2, Inf) )
[1] "200%" "Inf" 
> percent( c(Inf, 2, Inf) )
Error in if (smallest_diff < sqrt(.Machine$double.eps)) { : 
  missing value where TRUE/FALSE needed
@hadley
Copy link
Member

hadley commented Apr 3, 2020

Duplicate of #251

In the future, please use the reprex package ? That makes it easier to see both the input and the output, formatted in such a way that I can easily re-run in a local session.

@hadley hadley closed this as completed Apr 3, 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