Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jun 27, 2024
1 parent 9556166 commit 50c5e0a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
7 changes: 0 additions & 7 deletions R/methods_other.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,7 @@ model_parameters.Gam <- function(model,
type = NULL,
table_wide = FALSE,
verbose = TRUE,
effectsize_type = NULL,
...) {
## TODO: remove deprecation warning later
if (!is.null(effectsize_type)) {
insight::format_warning("Argument `effectsize_type` is deprecated. Use `es_type` instead.")
es_type <- effectsize_type
}

model_parameters(
summary(model)$parametric.anova,
es_type = es_type,
Expand Down
1 change: 0 additions & 1 deletion man/model_parameters.cgam.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/testthat/test-rstanarm.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test_that("mp2", {
data(pbcLong, package = "rstanarm")
pbcLong$ybern <- as.integer(pbcLong$logBili >= mean(pbcLong$logBili))
set.seed(123)
invisible(capture.output(
invisible(capture.output({
model <- rstanarm::stan_mvmer(
formula = list(
ybern ~ year + (1 | id),
Expand All @@ -35,7 +35,7 @@ test_that("mp2", {
refresh = 0,
seed = 123
)
))
}))

mp <- suppressWarnings(model_parameters(model, centrality = "mean"))
s <- summary(model)
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test-svylme.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
skip_on_cran()
skip_on_os(c("mac", "linux", "solaris"))

skip_if_not_installed("withr")
skip_if_not_installed("survey")
skip_if_not_installed("lme4")
Expand Down

0 comments on commit 50c5e0a

Please sign in to comment.