Skip to content

Commit eb475aa

Browse files
committed
improved example
1 parent 83bdbf4 commit eb475aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/simplify_conditional.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ library(validate)
33
# superfluous conditions
44
rules <- validator(
55
r1 = if (x > 0) x < 1,
6-
r2 = if (x > 0 && x > 1) y > 0
6+
r2 = if (y > 0 && y > 1) z > 0
77
)
88
# r1 means that x > 0 is superfluous
9-
# r2 means that x > 0 is superfluous
9+
# r2 means that y > 0 is superfluous
1010
simplify_conditional(rules)
1111

1212
# non-relaxing clause

man/simplify_conditional.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)