Skip to content

Commit

Permalink
turn the verbosity back on for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DanChaltiel committed Aug 12, 2024
1 parent 1919e69 commit bc14d12
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
24 changes: 12 additions & 12 deletions tests/testthat/_snaps/effects_snap.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
crosstable(mtcars3, -model, by = any_of(.x), effect = T, effect_args = e_args) %>% select(.id, any_of("effect")) %>% distinct() %>% as.data.frame()
Condition
Warning in `crosstable()`:
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values.
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values/blank.
Warning:
Problems occured when calculating crosstable effects (glm-logit):
i "glm.fit: fitted probabilities numerically 0 or 1 occurred" and "collapsing to unique 'x' values"
Expand Down Expand Up @@ -46,7 +46,7 @@
crosstable(mtcars3, -model, by = any_of(.x), effect = T, effect_args = e_args) %>% select(.id, any_of("effect")) %>% distinct() %>% as.data.frame()
Condition
Warning in `crosstable()`:
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values.
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values/blank.
Warning:
An error occured when calculating crosstable effects (glm-log):
i "no valid set of coefficients has been found: please supply starting values"
Expand Down Expand Up @@ -98,7 +98,7 @@
crosstable(mtcars3, -model, by = any_of(.x), effect = T, effect_args = e_args) %>% select(.id, any_of("effect")) %>% distinct() %>% as.data.frame()
Condition
Warning in `crosstable()`:
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values.
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values/blank.
Warning:
Problems occured when calculating crosstable effects (glm-logit):
i "glm.fit: fitted probabilities numerically 0 or 1 occurred" and "collapsing to unique 'x' values"
Expand Down Expand Up @@ -140,7 +140,7 @@
crosstable(mtcars3, -model, by = any_of(.x), effect = T, effect_args = e_args) %>% select(.id, any_of("effect")) %>% distinct() %>% as.data.frame()
Condition
Warning in `crosstable()`:
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values.
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values/blank.
Warning:
Problems occured when calculating crosstable effects (glm-logit):
i "glm.fit: fitted probabilities numerically 0 or 1 occurred", "glm.fit: algorithm did not converge", and "collapsing to unique 'x' values"
Expand Down Expand Up @@ -182,7 +182,7 @@
crosstable(mtcars3, -model, by = any_of(.x), effect = T, effect_args = e_args) %>% select(.id, any_of("effect")) %>% distinct() %>% as.data.frame()
Condition
Warning in `crosstable()`:
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values.
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values/blank.
Warning:
An error occured when calculating crosstable effects (glm-log):
i "no valid set of coefficients has been found: please supply starting values"
Expand Down Expand Up @@ -234,7 +234,7 @@
crosstable(mtcars3, -model, by = any_of(.x), effect = T, effect_args = e_args) %>% select(.id, any_of("effect")) %>% distinct() %>% as.data.frame()
Condition
Warning in `crosstable()`:
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values.
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values/blank.
Warning:
Problems occured when calculating crosstable effects (glm-logit):
i "glm.fit: fitted probabilities numerically 0 or 1 occurred", "glm.fit: algorithm did not converge", and "collapsing to unique 'x' values"
Expand Down Expand Up @@ -276,7 +276,7 @@
crosstable(mtcars3, -model, by = any_of(.x), effect = T, effect_args = e_args) %>% select(.id, any_of("effect")) %>% distinct() %>% as.data.frame()
Condition
Warning in `crosstable()`:
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values.
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values/blank.
Warning:
Problems occured when calculating crosstable effects (glm-logit):
i "glm.fit: fitted probabilities numerically 0 or 1 occurred" and "collapsing to unique 'x' values"
Expand Down Expand Up @@ -328,7 +328,7 @@
crosstable(mtcars3, -model, by = any_of(.x), effect = T, effect_args = e_args) %>% select(.id, any_of("effect")) %>% distinct() %>% as.data.frame()
Condition
Warning in `crosstable()`:
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values.
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values/blank.
Warning:
An error occured when calculating crosstable effects (glm-log):
i "no valid set of coefficients has been found: please supply starting values"
Expand Down Expand Up @@ -385,7 +385,7 @@
crosstable(mtcars3, -model, by = any_of(.x), effect = T, effect_args = e_args) %>% select(.id, any_of("effect")) %>% distinct() %>% as.data.frame()
Condition
Warning in `crosstable()`:
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values.
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values/blank.
Warning:
Problems occured when calculating crosstable effects (glm-logit):
i "glm.fit: fitted probabilities numerically 0 or 1 occurred" and "collapsing to unique 'x' values"
Expand Down Expand Up @@ -437,7 +437,7 @@
crosstable(mtcars3, -model, by = any_of(.x), effect = T, effect_args = e_args) %>% select(.id, any_of("effect")) %>% distinct() %>% as.data.frame()
Condition
Warning in `crosstable()`:
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values.
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values/blank.
Warning:
A problem occured when calculating crosstable effects (glm-logit):
i "glm.fit: fitted probabilities numerically 0 or 1 occurred"
Expand Down Expand Up @@ -479,7 +479,7 @@
crosstable(mtcars3, -model, by = any_of(.x), effect = T, effect_args = e_args) %>% select(.id, any_of("effect")) %>% distinct() %>% as.data.frame()
Condition
Warning in `crosstable()`:
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values.
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values/blank.
Warning:
An error occured when calculating crosstable effects (glm-log):
i "no valid set of coefficients has been found: please supply starting values"
Expand Down Expand Up @@ -526,7 +526,7 @@
crosstable(mtcars3, -model, by = any_of(.x), effect = T, effect_args = e_args) %>% select(.id, any_of("effect")) %>% distinct() %>% as.data.frame()
Condition
Warning in `crosstable()`:
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values.
Cannot describe columns `dummy_na` and `dummy_na2` as they contain only missing values/blank.
Warning:
A problem occured when calculating crosstable effects (glm-logit):
i "glm.fit: fitted probabilities numerically 0 or 1 occurred"
Expand Down
5 changes: 4 additions & 1 deletion tests/testthat/helper-init_dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ options(
# lifecycle_verbosity="verbose",
testthat.progress.max_fails = 50
)
crosstable_options(verbosity_autotesting="quiet")
crosstable_options(
verbosity_autotesting="quiet",
verbosity_na_cols="verbose",
)
# prettycode::prettycode()


Expand Down

0 comments on commit bc14d12

Please sign in to comment.