Open avallecam opened 1 month ago
What about the case where this is used in a pipeline and the user just wants the pipeline to continue if everything is valid.
Should this behaviour be controlled by an extra argument?
What about the case where this is used in a pipeline and the user just wants the pipeline to continue if everything is valid.
Should this behaviour be controlled by an extra argument?
if everything is valid, and we get a message similar to a "warning" (or just a neutral print message) I think this will allow the pipeline to continue, right?
I imagine sth similar to the
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
as in this reprex:
library(tidyverse)
starwars %>%
ggplot(aes(x = height)) +
geom_histogram()
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
#> Warning: Removed 6 rows containing non-finite outside the scale range
#> (`stat_bin()`).
Created on 2024-08-08 with reprex v2.1.0
if everything is valid, and we get a message similar to a "warning" (or just a neutral print message) I think this will allow the pipeline to continue, right?
Yes, you're correct, the pipeline can continue. One problem with long pipelines however is that you get overflowed with messages and they are no longer helpful.
@chartgerink, any opinions on this, as it is relevant for datatagr as well?
I don't see any problems with that š Thanks for the suggestion @avallecam š
Is your feature request related to a problem? Please describe.
The output of
validate_linelist()
is equivalent to the output ofmake_linelist()
. It would be informative to users to get a message that validation was successfull.Created on 2024-07-30 with reprex v2.1.0
Describe the solution you'd like A printed message like
All tagged variables are valid.
or similar.Additional context A similar request was suggested for the cleanepi package at https://github.com/epiverse-trace/cleanepi/issues/150