Skip to content

Commit cd027dd

Browse files
committed
tweaking README
1 parent 466c6fb commit cd027dd

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ is_contradicted_by(rules, "rule1")
7272

7373
```{r}
7474
rules <- validator(
75-
if (income > 0) job == "yes",
76-
if (job == "yes") income == 0
75+
rule1 = if (income > 0) job == "yes",
76+
rule2 = if (job == "yes") income == 0
7777
)
7878
7979

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,22 @@ is_contradicted_by(rules, "rule1")
7575

7676
``` r
7777
rules <- validator(
78-
if (income > 0) job == "yes",
79-
if (job == "yes") income == 0
78+
rule1 = if (income > 0) job == "yes",
79+
rule2 = if (job == "yes") income == 0
8080
)
8181

8282

8383
conflicts <- detect_contradicting_if_rules(rules, verbose=TRUE)
8484
#> 1 contradiction(s) with if clauses found:
8585
#> When income > 0:
86-
#> V2: if (job == "yes") income == 0
87-
#> V1: if (income > 0) job == "yes"
86+
#> rule2: if (job == "yes") income == 0
87+
#> rule1: if (income > 0) job == "yes"
8888
```
8989

9090
``` r
9191
print(conflicts)
9292
#> $`income > 0`
93-
#> [1] "V2" "V1"
93+
#> [1] "rule2" "rule1"
9494
```
9595

9696
## Simplifying

0 commit comments

Comments
 (0)