tests/testthat/test-warplda.R

##context("check Warp LDA support")
test_that("generate_test_content", {
    skip_if_not(exists("abstracts_warplda"))
    x <- oolong:::.generate_test_content(abstracts_warplda)
    expect_null(x$ti)
    ### NO input_dfm
    expect_error(oolong:::.generate_test_content(abstracts_warplda, quanteda::corpus(abstracts$text)))
    x <- oolong:::.generate_test_content(abstracts_warplda, quanteda::corpus(abstracts$text), input_dfm = abstracts_dfm)
    expect_true(!is.null(x$ti))
})

Try the oolong package in your browser

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

oolong documentation built on Aug. 25, 2023, 5:16 p.m.