Skip to content

Commit

Permalink
update tests. lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 2, 2024
1 parent 8362b46 commit 4e51b2b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/testthat/_snaps/weightit.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
Uncertainty intervals (equal-tailed) and p-values (two-tailed) computed
using a Wald z-distribution approximation.
The model has a log- or logit-link. Consider using `exponentiate =
TRUE` to interpret coefficients as ratios.

# weightit, ordinal

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-printing-stan.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ skip_if_not_installed("insight")
skip_if_not_installed("withr")

withr::with_options(
list("parameters_exponentiate" = FALSE),
list(parameters_exponentiate = FALSE),
{

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

View workflow job for this annotation

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

file=tests/testthat/test-printing-stan.R,line=10,col=3,[unnecessary_nesting_linter] Reduce the nesting of this statement by removing the braces {}.
test_that("print brms", {
m1 <- insight::download_model("brms_1")
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-printing2.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ skip_if_not_installed("withr")
skip_if(getRversion() < "4.0.0")

withr::with_options(
list("parameters_interaction" = "*"),
list(parameters_interaction = "*"),
{
lm1 <- lm(Sepal.Length ~ Species, data = iris)
lm2 <- lm(Sepal.Length ~ Species + Petal.Length, data = iris)
Expand Down

0 comments on commit 4e51b2b

Please sign in to comment.