tests/testthat/test-expose_dryRun.R

test_that("expose_functions works with dryRun", {
  funcode <- "
    functions {
      real rtn_real(real x) {
        return x;
      }
    }"

  expect_no_error(expose_stan_functions(stanc(model_code = funcode), dryRun = TRUE))
})

Try the rstan package in your browser

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

rstan documentation built on Oct. 15, 2023, 9:06 a.m.