tests/testthat/test-discursive_size.R

test_that("discursive_size runs without error", {
  expect_no_error(
    discursive_size(data = cces,
                    openends = c(paste0("oe0", 1:9), "oe10"),
                    meta = c("age", "educ_cont", "pid_cont", "educ_pid", "female"),
                    args_prepDocuments = list(lower.thresh = 10),
                    args_stm = list(K = 25, seed = 12345))
  )
})

Try the discursive package in your browser

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

discursive documentation built on July 9, 2023, 5:34 p.m.