tests/testthat/test-vis_numerics.R

context("test-vis_numerics")

test_that("vis_numerics works", {

  data(iris)

  # Test if there are numeric variables
  ggplist <- vis_numerics(iris)
  expect_is(ggplist, class = "list")

  # Test if there is not numeric variable
  expect_error(vis_numerics(iris["Species"]),
               "There should be numerical columns in .data")
})
BenjaminLouis/datascan documentation built on May 26, 2019, 1:35 p.m.