tests/testthat/test-utils.R

test_that("check_font is working", {
    # skip_on_os("windows")
    # skip_on_os("mac")
    skip_on_cran()
    expect_error(quanteda.textplots:::check_font("XXXXX"), "XXXXX is not found on your system") 
    # expect_equal(quanteda.textplots:::check_font("Ubuntu"), "Ubuntu")
    expect_equal(quanteda.textplots:::check_font("sans"), "sans")
    expect_equal(quanteda.textplots:::check_font("serif"), "serif")
    expect_equal(quanteda.textplots:::check_font("mono"), "mono")
})

Try the quanteda.textplots package in your browser

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

quanteda.textplots documentation built on June 22, 2024, 7:33 p.m.