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

Better error message when an ARD is accidentally passed to tbl_summary() #1992

Open
ddsjoberg opened this issue Sep 23, 2024 · 0 comments
Open

Comments

@ddsjoberg
Copy link
Owner

ddsjoberg commented Sep 23, 2024

This may apply to more of the tbl_*() functions as well. This could be generalized to a check that there are no list columns.

library(cards)

mtcars |> 
  ard_categorical(variables = cyl) |> 
  gtsummary::tbl_summary()
#> Error in sort.int(x, na.last = na.last, decreasing = decreasing, ...): 'x' must be atomic

Created on 2024-09-22 with reprex v2.1.1

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