From bc14d120546295dff816614d17d259d963b5b652 Mon Sep 17 00:00:00 2001 From: Dan Chaltiel <15105152+DanChaltiel@users.noreply.github.com> Date: Mon, 12 Aug 2024 20:28:42 +0200 Subject: [PATCH] turn the verbosity back on for tests --- tests/testthat/_snaps/effects_snap.md | 24 ++++++++++++------------ tests/testthat/helper-init_dataset.R | 5 ++++- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/tests/testthat/_snaps/effects_snap.md b/tests/testthat/_snaps/effects_snap.md index a7d50092..27a580c1 100644 --- a/tests/testthat/_snaps/effects_snap.md +++ b/tests/testthat/_snaps/effects_snap.md @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" diff --git a/tests/testthat/helper-init_dataset.R b/tests/testthat/helper-init_dataset.R index 25ebbb86..6bb25688 100644 --- a/tests/testthat/helper-init_dataset.R +++ b/tests/testthat/helper-init_dataset.R @@ -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()