tests/testthat/test-cTMed-test-stable.R

## ---- test-cTMed-stable
lapply(
  X = 1,
  FUN = function(i,
                 text,
                 tol) {
    message(text)
    testthat::test_that(
      paste(text, "TestStable"),
      {
        testthat::skip_on_cran()
        answer <- 0.0799008
        phi <- matrix(
          data = c(
            -0.357, 0.771, -0.450,
            0.0, -0.511, 0.729,
            0, 0, -0.693
          ),
          nrow = 3
        )
        testthat::expect_true(
          cTMed:::.TestStable(phi)
        )
      }
    )
  },
  text = "test-cTMed-stable",
  tol = 0.01
)

Try the cTMed package in your browser

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

cTMed documentation built on Nov. 5, 2025, 7:18 p.m.