tests/testthat/test-summarise-plot.R

test_that("summarise_*() throws appropriate errors", {

  expect_snapshot_error(summarise_layout(10))
  expect_snapshot_error(summarise_coord("A"))
  expect_snapshot_error(summarise_layers(TRUE))

})

Try the ggplot2 package in your browser

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

ggplot2 documentation built on Oct. 12, 2023, 5:08 p.m.