tests/testthat/test-plot.R

context("plot")

test_that("lcars_border returns as expected", {
  file <- file.path(tempdir(), "test-plot.png")
  if(require(png)){
    png(file)
    expect_is(lcars_border(), "NULL")
    unlink(file, recursive = TRUE, force = TRUE)
  }
})

Try the lcars package in your browser

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

lcars documentation built on Sept. 10, 2023, 9:07 a.m.