tests/testthat/test-ggplot-warnings.R

test_that("ggplotly does not issue partial-argument-match warning", {
  skip_if_not(getRversion() >= "3.6")
  
  opts <- options(warnPartialMatchArgs = TRUE)
  on.exit(options(opts), add = TRUE)
  p <- ggplot(data.frame())
  expect_warning(ggplotly(p), regexp = NA)
})

Try the plotly package in your browser

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

plotly documentation built on Nov. 10, 2022, 5:42 p.m.