tests/testthat/test-as-term.R

test_that("as_term", {
  term <- as_term(mcmcr_example)
  expect_identical(term, term::new_term(c(
    "alpha[1]", "alpha[2]", "beta[1,1]", "beta[2,1]",
    "beta[1,2]", "beta[2,2]", "sigma"
  )))
})

test_that("as.term", {
  rlang::scoped_options(lifecycle_verbosity = "quiet")
  term <- as_term(mcmcr_example)
  expect_identical(term, term::new_term(c(
    "alpha[1]", "alpha[2]", "beta[1,1]", "beta[2,1]",
    "beta[1,2]", "beta[2,2]", "sigma"
  )))
})

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.