tests/testthat/test_codewriting.R

context("Plot code writing")

data(iris)
test_that("Basic plot returns valid code", {
    # p <- iNZightPlot(Sepal.Width, data = iris)
    # expect_equal(
    #     attr(p, "code"),
    #      "iNZightPlot(Sepal.Width, data = iris)"
    # )
})

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.