tests/testthat/test-discursive.R

test_that("discursive runs without error", {
  expect_no_error(
    discursive(data = cces,
               openends = c(paste0("oe0", 1:9), "oe10"),
               dictionary = dict_sample,
               meta = c("age", "educ_cont", "pid_cont", "educ_pid", "female"),
               args_textProcessor = list(customstopwords = c("dont", "hes", "shes", "that", "etc")),
               args_prepDocuments = list(lower.thresh = 10),
               args_stm = list(K = 25, seed = 12345, verbose = FALSE))
  )
})

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.