tests/testthat/test-npdims.R

test_that("npdims", {
  expect_identical(npdims(mcmcr_example2), c(alpha = 3L, beta = 3L, sigma = 3L))
  expect_identical(npdims(mcmcr_example), c(alpha = 1L, beta = 2L, sigma = 1L))
  expect_identical(npdims(as.mcmc.list(mcmcr_example)), c(alpha = 1L, beta = 2L, sigma = 1L))
})

Try the mcmcr package in your browser

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

mcmcr documentation built on Sept. 7, 2021, 1:07 a.m.