tests/testthat/test_amWaterfall.R

testthat::context("amWaterfall")

# Load data
data("data_waterfall")

testthat::test_that("amWaterfall : reference example", {
  testthat::expect_silent({
    amWaterfall(data = data_waterfall, show_values = TRUE)
  })
})

testthat::test_that("amWaterfall : change orientation", {
  testthat::expect_silent({
    amWaterfall(data = data_waterfall, horiz = TRUE)
  })
})

    

Try the rAmCharts package in your browser

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

rAmCharts documentation built on Sept. 30, 2022, 5:06 p.m.