Skip to content

Commit bac58fc

Browse files
fix tests
1 parent b5a313e commit bac58fc

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tests/testthat/test-estimate_smooth.R

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
if (require("testthat") && require("modelbased") && require("rstanarm")) {
22
test_that("estimate_smooth", {
3+
testthat::skip_on_cran()
34
set.seed(333)
45

5-
# model <- rstanarm::stan_gamm4(Sepal.Width ~ s(Petal.Length), data = iris, refresh = 0, iter = 200, chains = 2, seed = 333)
6-
# estim <- estimate_smooth(model)
7-
# testthat::expect_equal(c(nrow(estim), ncol(estim)), c(2, 7))
6+
model <- rstanarm::stan_gamm4(Sepal.Width ~ s(Petal.Length), data = iris, refresh = 0, iter = 200, chains = 2, seed = 333)
7+
estim <- estimate_smooth(model)
8+
testthat::expect_equal(c(nrow(estim), ncol(estim)), c(2, 7))
89

910
model <- rstanarm::stan_glm(Sepal.Width ~ poly(Petal.Length, 2), data = iris, refresh = 0, iter = 200, chains = 2, seed = 333)
1011
estim <- estimate_smooth(model)

tests/testthat/test-glmmTMB.R

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
if (require("testthat") && require("modelbased") && require("glmmTMB") && require("emmeans")) {
2+
3+
# testthat::skip_on_cran()
4+
25
data <- glmmTMB::Salamanders
36
model <- glmmTMB::glmmTMB(
47
count ~ mined + (1 | site),

0 commit comments

Comments
 (0)