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

Fix option c #135 #195

Merged
merged 7 commits into from
Dec 23, 2024
Merged

Fix option c #135 #195

merged 7 commits into from
Dec 23, 2024

Conversation

cristinamullin
Copy link
Collaborator

No description provided.

# check that all TADA template columns are included (returns TRUE or FALSE)
# if FALSE, returns an error with names of specific columns that are missing but required
# this section needs to be updated to handle the error within the shiny app (instead of crashing) & display a message to users
EPATADA::TADA_CheckRequiredFields(raw)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@triphook I am working on related updates to the TADA package, but once those are merged and this PR is merged, then this will be a good example to look at for implementing error handling in TADAShiny.

Here, when TADA_CheckRequiredFields runs on a dataset that is uploaded by a user (option C), but that dataset is missing required cols to run the app, then TADA_CheckRequiredFields will intentionally return an error which includes the missing cols. Instead of crashing the shiny app, this message should display for users and they should be able to edit their file and re-upload.

@cristinamullin cristinamullin merged commit 6d01311 into develop Dec 23, 2024
6 checks passed
@cristinamullin cristinamullin deleted the fix-option-C-#135 branch December 23, 2024 23:19
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

Successfully merging this pull request may close these issues.

1 participant