Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 27, 2024
1 parent 7acbe64 commit 0c5a1a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions tests/testthat/_snaps/printing.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
Uncertainty intervals (equal-tailed) and p-values (two-tailed) computed
using a Wald t-distribution approximation.

# message about interpretation of log-resoponse
# no more message about interpretation of log-resoponse

Code
print(out)
Expand All @@ -360,8 +360,4 @@
Uncertainty intervals (equal-tailed) and p-values (two-tailed) computed
using a Wald t-distribution approximation.
The model has a log-transformed response variable, and exponentiated
parameters are reported. A one-unit increase in the predictor is
associated with multiplying the outcome by that predictor's coefficient.

2 changes: 1 addition & 1 deletion tests/testthat/test-printing.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ withr::with_options(
withr::with_options(
list(parameters_warning_exponentiate = TRUE),
{

Check warning on line 114 in tests/testthat/test-printing.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=tests/testthat/test-printing.R,line=114,col=3,[unnecessary_nesting_linter] Reduce the nesting of this statement by removing the braces {}.
test_that("message about interpretation of log-resoponse", {
test_that("no more message about interpretation of log-resoponse", {
data(mtcars)
m <- lm(log(mpg) ~ gear, data = mtcars)
out <- model_parameters(m, exponentiate = TRUE)
Expand Down

0 comments on commit 0c5a1a5

Please sign in to comment.