tests/testthat/test-indices.R

test_that("sequence indices can be computed", {
  expect_error(
    sequence_indices(mock_sequence),
    NA
  )
  expect_error(
    sequence_indices(engagement[1:200, ]),
    NA
  )
})

test_that("favorable states can be specified", {
  expect_error(
    sequence_indices(mock_sequence, favorable = "A"),
    NA
  )
})

Try the codyna package in your browser

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

codyna documentation built on Jan. 16, 2026, 5:15 p.m.