tests/testthat/test_1.R

context("images")

test_that("Prep Images",{

  #svg
  img <- system.file("htmlwidgets/samples/cocina.svg", package = "imteractive")
  make_image(img)
  imteractive(img)

  #png
  img <- system.file("htmlwidgets/samples/cocina.png", package = "imteractive")
  d <- data_frame(
    x = c(10,20),
    y = c(50,90)
  )
  data <- make_image(img, d = d)


  })
jpmarindiaz/imteractive documentation built on May 14, 2019, 2:02 a.m.