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

ut_scale does not support scaling by 0 #346

Closed
Enchufa2 opened this issue Apr 24, 2023 · 0 comments
Closed

ut_scale does not support scaling by 0 #346

Enchufa2 opened this issue Apr 24, 2023 · 0 comments
Labels

Comments

@Enchufa2
Copy link
Member

> x1 <- set_units(0, "m")
> x2 <- set_units(3, "m")
> x1 < x2
Error in ud_compare(e1, e2, as.character(units(e1)), as.character(units(e2))) : 
  ut_scale(): NULL factor argument

Similarly,

> units:::R_ut_scale(units:::R_ut_parse("m"), 0)
Error in units:::R_ut_scale(units:::R_ut_parse("m"), 0) : 
  ut_scale(): NULL factor argument

Reported here, but meanwhile we need to do something about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant