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

Add informative errors when user tries to do things like make sex numeric #7

Open
mbcann01 opened this issue May 9, 2022 · 0 comments

Comments

@mbcann01
Copy link
Member

mbcann01 commented May 9, 2022

For example

df <- data.frame(x = letters, y = 1:26)
df <- cb_add_col_attributes(df, x, col_type = "numeric")
codebook(df)

Returns the error

Error in `dplyr::mutate()`:
! Problem while computing `..1 = dplyr::across(dplyr::everything(), round, digits = digits)`.
Caused by error in `across()`:
! Problem while computing column `Min`.
Caused by error in `fn()`:
! non-numeric argument to mathematical function

We should figure out a way to intercept it and give something more informative.

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

No branches or pull requests

1 participant