validate icon indicating copy to clipboard operation
validate copied to clipboard

better output for confrontation objects

Open markvanderloo opened this issue 3 years ago • 3 comments

More user-friendly print method. e.g. also showing the number of missings.

markvanderloo avatar Feb 01 '21 08:02 markvanderloo

New output; comments welcome.


> check_that(SBS2000, turnover >= 0, other.rev >= 0, foo >= 1 )
Object of class 'validation'
Call:
    check_that(SBS2000, turnover >= 0, other.rev >= 0, foo >= 1)

Rules confronted: 3
   With fails   : 1
   With missings: 2
   Threw warning: 0
   Threw error  : 1

markvanderloo avatar Feb 11 '21 19:02 markvanderloo

Showing the number of rules with missings is really helpful!

matthiasgomolka avatar Feb 15 '21 14:02 matthiasgomolka

This is surely an improvement!

I opt for an extra statement whenever the number of missings is > 0. Something along the lines:

Note: in some cases when rules interact, missings may indicate an invalidation.

edwindj avatar Feb 15 '21 14:02 edwindj