tests/testthat/test-meta-random-bayes.R

test_that(
  desc = "meta_analysis works - bayesian",
  code = {
    skip_if_not_installed("metaBMA")

    set.seed(123)
    df <- suppressWarnings(meta_analysis(
      type = "bayes",
      data = data_meta,
      digits = 3L,
      iter = 1000L,
      summarize = "integrate"
    ))

    expect_type(df, "list")

    expect_snapshot(dplyr::select(df, -expression))
    expect_snapshot(df[["expression"]])
  }
)

Try the statsExpressions package in your browser

Any scripts or data that you put into this service are public.

statsExpressions documentation built on May 29, 2024, 4:28 a.m.