Skip to content

Commit 4810edb

Browse files
committed
updated an example
1 parent 530e630 commit 4810edb

File tree

5 files changed

+28
-10
lines changed

5 files changed

+28
-10
lines changed

R/detect_contradicting_if_rules.R

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22
#'
33
#' Detect whether conditions in if-rules may generate contradictions. Strictly
44
#' speaking these rules do not make the rule set infeasible but rather make
5-
#' the if-condition unsatisfiable. So semantically speaking these rules are
5+
#' the if-condition unsatisfiable.
6+
#' Semantically speaking these rules are
67
#' contradicting, because the writer of the rule set did not have the intention
7-
#' to make the condition forbidden. See examples for more details.
8+
#' to make the condition forbidden.
9+
#'
10+
#' In general it detects cases where:
11+
#'
12+
#' - `if (A) B` and `if (A) !B`, which probably is not intended, but strictly speaking equals `!A`.
13+
#' - `if (A) B` and `if (B) !A`, which probably is not intended but strictly speaking equals `!A`.
14+
#'
15+
#' See examples for more details.
816
#'
917
#' @param x A validator object.
1018
#' @param ... Additional arguments passed to `detect_if_clauses`.

man/detect_contradicting_if_rules.Rd

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

man/detect_redundancy.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.

man/is_implied_by.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.

man/remove_redundancy.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)