tests/testthat/test-bind-parameters.R

test_that("bind_parameters", {
  expect_identical(pars(bind_parameters(subset(as.mcmc.list(mcmcr_example), pars = "beta"), subset(as.mcmc.list(mcmcr_example), pars = "alpha"))), c("alpha", "beta"))
  expect_identical(pars(bind_parameters(subset(mcmcr_example, pars = "beta"), subset(mcmcr_example, pars = "alpha"))), c("alpha", "beta"))
  expect_identical(pars(bind_parameters(subset(mcmcr_example2, pars = "beta"), subset(mcmcr_example2, pars = "alpha"))), c("alpha", "beta"))
})

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.