Skip to content

Commit b8bff29

Browse files
committed
renaming it to contradicting
1 parent aab159a commit b8bff29

12 files changed

+41
-19
lines changed

NAMESPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ S3method(print,dnf)
88
S3method(print,mip_rule)
99
export(detect_boundary_cat)
1010
export(detect_boundary_num)
11+
export(detect_contradicting_if_rules)
1112
export(detect_fixed_variables)
12-
export(detect_infeasible_if_rules)
1313
export(detect_infeasible_rules)
1414
export(detect_redundancy)
1515
export(is_categorical)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
#' @param verbose Logical. If `TRUE`, print the results.
88
#' @return A list of contradictions found in the if clauses, or `NULL` if none are found.
99
#' @family feasibility
10-
#' @example ./examples/detect_infeasible_if_rules.R
10+
#' @example ./examples/detect_contradicting_if_rules.R
1111
#' @export
12-
detect_infeasible_if_rules <- function(x, ..., verbose = TRUE){
12+
detect_contradicting_if_rules <- function(x, ..., verbose = TRUE){
1313
res <- detect_if_clauses(x, ...)
1414
if (length(res) == 0){
1515
if (verbose){
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ rules <- validator(
33
if (nace == "a") export == "n"
44
)
55

6-
detect_infeasible_if_rules(rules)
6+
detect_contradicting_if_rules(rules)

issues/issue16.Rmd

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
output: github_document
3+
---
4+
5+
6+
```{r}
7+
library(validate)
8+
library(validatetools)
9+
10+
rules <- validator(
11+
if (nace == "a") export == "y",
12+
if (nace == "a") export == "n"
13+
)
14+
15+
detect_contradicting_if_rules(rules)
16+
```
17+
18+
19+
```{r}
20+
conflicts <- detect_contradicting_if_rules(rules, verbose=FALSE)
21+
conflicts
22+
```

man/detect_boundary_cat.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/detect_boundary_num.Rd

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

man/detect_infeasible_rules.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/is_contradicted_by.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/is_infeasible.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)