Skip to content

Commit

Permalink
donttest brms examples (>5 seconds on CRAN)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbolker committed Mar 31, 2024
1 parent 864b8f1 commit 6984ccb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions R/brms_tidiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#' brms_crossedRE <- brm(mpg ~ wt + (1|cyl) + (1+wt|gear), data = mtcars,
#' iter = 500, chains = 2)
#' }
#' if (.Platform$OS.type!="windows" && require("brms")) {
#' ## too slow on Windows, skip (>5 seconds on r-devel-windows)
#' \donttest{
#' ## too slow for CRAN (>5 seconds)
#' ## load stored object
#' load(system.file("extdata", "brms_example.rda", package="broom.mixed"))
#'
Expand Down
4 changes: 2 additions & 2 deletions man/brms_tidiers.Rd

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

3 changes: 0 additions & 3 deletions tests/testthat/test-brms.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

stopifnot(require("testthat"), require("broom.mixed"))

if (require(brms, quietly = TRUE) && require(rstanarm, quietly=TRUE)) {
Expand All @@ -7,8 +6,6 @@ if (require(brms, quietly = TRUE) && require(rstanarm, quietly=TRUE)) {
mustWork = TRUE
))

context("brms models")

## GH #87
tt <- suppressWarnings(tidy(brms_multi,conf.int=TRUE))
expect_true(all(c("conf.low","conf.high") %in%
Expand Down

0 comments on commit 6984ccb

Please sign in to comment.