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

Update Error message on coerce_to_hub_schema() for non-matching column names #50

Open
LucieContamin opened this issue Jul 24, 2024 · 0 comments

Comments

@LucieContamin
Copy link

          While testing, I run a test with the wrong data frame (one that was containing the `model_id` column, and as expected the function failed because of the additional column. However, the error message is not really helpful:
Error in `purrr::map2()` at hubData/R/coerce_to_hub_schema.R:40:5:In index: 1.
Caused by error in `if (.y == "Date") ...`:
! missing value where TRUE/FALSE needed

So I was wondering it it makes sense to add a test here on the column names. (I can open an issue as it's not really related to the PR)

Originally posted by @LucieContamin in #49 (comment)

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