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

No non-missing arguments to max; returning -Inf #339

Open
nanxstats opened this issue Feb 16, 2024 · 0 comments
Open

No non-missing arguments to max; returning -Inf #339

nanxstats opened this issue Feb 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nanxstats
Copy link
Collaborator

nanxstats commented Feb 16, 2024

Run the following example from ?as_gt()

gs_power_wlr() %>%
  summary() %>%
  as_gt(
    colname_spanner = "Cumulative probability to cross boundaries",
    colname_spannersub = c("under H1", "under H0")
  )

yields the following warning message:

Warning message:
  In max((x %>% dplyr::filter(Bound == display_bound[1]))[[colname_spannersub[2]]]) :
  no non-missing arguments to max; returning -Inf

For this reason, suppressWarnings() had to be used in as_gt() tests in #337 to keep test outputs clean.

@nanxstats nanxstats added the bug Something isn't working label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant