tests/testthat/test-dygraph.R

context("dygraph")

test_that("dygraph creation", {
  expect_is(dygraph(ldeaths), class = "dygraphs")
  expect_identical(dygraph(ldeaths, xlab = "x")$x$attrs$xlabel, "x")
  expect_identical(dygraph(ldeaths, ylab = "y")$x$attrs$ylabel, "y")
})

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.