context("Dual Measure Plot")
# Check if creating a Dual Measure plot throws an error
test_that("createDualMeasurePlot for mlr benchmark", {
p = createDualMeasurePlot(mlr.benchmark.example, "measure.mmce.test.mean", "measure.ber.test.mean")
expect_true(is.list(p))
})
# Check if creating a Dual Measure Plot throws an error
test_that("createDualMeasurePlot for microbenchmark", {
tmp = microbenchmark.example
tmp$replication = NULL
p = createDualMeasurePlot(tmp, "measure.mean", "measure.median", interaction.column = "problem", regression.line = TRUE)
expect_true(is.list(p))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.