-
Notifications
You must be signed in to change notification settings - Fork 6
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
Filtering action crashes the app #37
Comments
After spending a few hours, I believe the issue occurs because bdchecks::perform_dc (https://github.com/bd-R/bdchecks.app/blob/master/R/mod_perform_checks.R#L82) return error when data contain fields with time stamp like dateIdentified or eventDate, etc. Error this function return is: Error in as.POSIXlt.character(x, tz, ...) : |
Hi Rahul, The date error is a known one. I hoped we've already purged it, but it still lurks around. @Martis6 will take care of it (bd-R/bdchecks#27). However, the filtering function gives an error even when performing bug-free checks. @rahulchauhan049 or @thiloshon can you please exactly describe us the input coming from the Shiny app (i.e., |
@Martis6
Example:For the following table selection: This matrix is also attached (RData file): |
@Martis6 @thiloshon @rahulchauhan049 bdchecks.app/R/mod_perform_checks.R Line 100 in 8cce435
We can fix the issue by adding: Which one is better, and why? Lesson: To improve our function's defensive programming 🏆 bd-R/bdchecks#28 |
return_core is better as we can't predict when user_data is reactive or not. return_core always returns the core object if a reactive value is passed. |
Console error:

Filtering functions in bdchecks:
https://github.com/bd-R/bdchecks/blob/dev/R/filter.R
Brunches:
bdchecks>>dev | bdchecks.app>>dev
The text was updated successfully, but these errors were encountered: