tests/testthat/test_pars.R

context("Plot type parameters")

test_that("Valid pars detects correctly", {
    expect_true(valid_par("pch", "dot"))
    expect_false(valid_par("pch", "dot", "inference"))
    expect_false(valid_par("pch", "hex"))

    expect_true(valid_par("unknown", "dot"))
    expect_warning(expect_true(valid_par("pch", "unknown")))
})

Try the iNZightPlots package in your browser

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

iNZightPlots documentation built on Oct. 14, 2023, 9:13 a.m.