tests/testthat/test-models.R

data_min <- lapply(miheart, \(x) x[, 4:6, 1:3])

test_that("the MSTCAR model works", {
  expect_no_error(
    mstcar(
      "test",
      data_min,
      miadj,
      show_plots = FALSE,
      verbose = FALSE,
      seed = 1234
    )
  )
})

Try the RSTr package in your browser

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

RSTr documentation built on Jan. 31, 2026, 9:07 a.m.