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

Confusing/misleading/erroneous error message #5

Open
TimTaylor opened this issue Mar 25, 2024 · 1 comment
Open

Confusing/misleading/erroneous error message #5

TimTaylor opened this issue Mar 25, 2024 · 1 comment

Comments

@TimTaylor
Copy link
Owner

ageutils::reaggregate_interval_counts(
    lower_bounds = 0:100,
    upper_bounds = c(1:100, Inf),
    counts = runif(101, 100, 1000),
    max_upper = 100,
    breaks = c(0, 10, 50)
)
#> Warning in ageutils::reaggregate_interval_counts(lower_bounds = 0:100,
#> upper_bounds = c(1:100, : `upper_bounds` greater than `max_upper` (100) have
#> been replaced prior to splitting.
#> Error in ageutils::reaggregate_interval_counts(lower_bounds = 0:100, upper_bounds = c(1:100, : `lower_bounds` must be less than `upper_bounds`.

Created on 2024-03-25 with reprex v2.1.0

@TimTaylor
Copy link
Owner Author

Patching with the following alternative:

ageutils::reaggregate_interval_counts(
    lower_bounds = 0:100,
    upper_bounds = c(1:100, Inf),
    counts = runif(101, 100, 1000),
    max_upper = 100,
    breaks = c(0, 10, 50)
)
#> Error in ageutils::reaggregate_interval_counts(lower_bounds = 0:100, upper_bounds = c(1:100, : 
    `max_upper` must be greater than all `lower_bounds`.

Leaving this open though as want to improve this before 0.1.0 release

TimTaylor added a commit that referenced this issue Mar 25, 2024
This can still be improve but works as a temporary patch for #5
(#5).
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

1 participant