tests/testthat/test-convert_to_stanfit.R

test_that("Can successfully covert the output of fv_sample to rstan format", {
  skip_on_cran()
  rstanformat <- convert_to_stanfit(fit1)
  expect_type(rstanformat, "S4")
  expect_equal(class(rstanformat)[1], "stanfit")
})
epiforecasts/forecast.vocs documentation built on May 14, 2023, 2 p.m.