tests/testthat/test-plotter.R

context("dyOptions")

test_that("custom plotter", {
  d <- dygraph(ldeaths) %>% dyOptions(plotter = "function(){}")
  expect_false(is.null(d$x$attrs$plotter))
})

Try the dygraphs package in your browser

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

dygraphs documentation built on May 2, 2019, 3:34 p.m.