tests/testthat/test-hbl_plot_tau.R

test_that("hbl_plot_tau()", {
  skip_on_cran()
  set.seed(0)
  data <- hbl_sim_independent(n_continuous = 2)$data
  tmp <- utils::capture.output(
    suppressWarnings(
      mcmc <- hbl_mcmc_hierarchical(
        data,
        chains = 1,
        warmup = 10,
        iter = 20,
        seed = 0
      )
    )
  )
  out <- hbl_plot_tau(mcmc)
  expect_s3_class(out, "ggplot")
})

Try the historicalborrowlong package in your browser

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

historicalborrowlong documentation built on Sept. 30, 2024, 9:40 a.m.