tests/testthat/test-show.R

context("show")

test_that("test_show() works", {
  widget <- pixels::show_pixels(
    round(runif(400, 0, 1)),
    grid = c(40, 10),
    size = c(800, 200),
    params = list(fill = list(color = "#FF3388"))
  )
  
  expect_true("htmlwidget" %in% class(widget))
})

Try the pixels package in your browser

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

pixels documentation built on Dec. 4, 2020, 5:07 p.m.