tests/testthat/test-limits.R

test_that("limits() throw meaningful errors", {
  expect_snapshot_error(lims(1:2))
  expect_snapshot_error(lims(linewidth = 1))
})

Try the ggplot2 package in your browser

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

ggplot2 documentation built on June 22, 2024, 11:35 a.m.