tests/testthat/test_base_generateCorrPlot.R

context("generateCorrPlot")
data("airquality")

test_that("genrateCorrPlot", {
  my.task = makeCorrTask(id = "test", data = airquality)
  my.corr = makeCorr(my.task)
  corr.plot = AEDA:::generateCorrPlot(my.corr, "my.corr")
  expect_character(corr.plot$needed.pkg)
  expect_character(corr.plot$code)
  library(corr.plot$needed.pkg, character.only = TRUE)
  eval(parse(text = corr.plot$code))
})
ptl93/AEDA documentation built on May 7, 2019, 3:20 p.m.