Skip to content

Commit

Permalink
add suppressWarnings to brms::loo_compare() example to avoid failing …
Browse files Browse the repository at this point in the history
…example workflow
  • Loading branch information
rempsyc committed Sep 13, 2024
1 parent fec2023 commit 8d33c6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions R/report.compare.loo.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@
#' @param include_ENP Whether to include the effective number of parameters (ENP).
#' @param ... Additional arguments (not used for now).
#'
#' @examplesIf requireNamespace("brms", quietly = TRUE) && requireNamespace)(RcppEigen) && requireNamespace)(BH)
#' @examplesIf requireNamespace("brms", quietly = TRUE) && requireNamespace(RcppEigen) && requireNamespace(BH)
#' \donttest{
#' library(brms)
#'
#' m1 <- brms::brm(mpg ~ qsec, data = mtcars)
#' m2 <- brms::brm(mpg ~ qsec + drat, data = mtcars)
#' m3 <- brms::brm(mpg ~ qsec + drat + wt, data = mtcars)
#'
#' x <- brms::loo_compare(
#' x <- suppressWarnings(brms::loo_compare(
#' brms::add_criterion(m1, "loo"),
#' brms::add_criterion(m2, "loo"),
#' brms::add_criterion(m3, "loo"),
#' model_names = c("m1", "m2", "m3")
#' )
#' ))
#' report(x)
#' report(x, include_IC = FALSE)
#' report(x, include_ENP = TRUE)
Expand Down
6 changes: 3 additions & 3 deletions man/report.compare.loo.Rd

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

0 comments on commit 8d33c6d

Please sign in to comment.