tests/testthat/test-cmdstan.R

skip_if_not(check_cmdstan())

test_that("check_cmdstanr runs as expected", {
  expect_output(
    check_cmdstanr(check_sampling = FALSE),
    "int<lower=0> N;",
    fixed = TRUE
  )

  skip_on_ci()
  skip_on_cran()
  result <- check_cmdstanr(check_sampling = TRUE)
  expect_class(result, "CmdStanMCMC")
})

Try the psborrow2 package in your browser

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

psborrow2 documentation built on April 4, 2025, 12:37 a.m.