tests/testthat/test_ChartCursor_setters.R

context("ChartCursor setters (class unions)")

testthat::test_that("setValueLineAxis method", {
  testthat::expect_error(setValueLineAxis(.Object = chartCursor()))
  testthat::expect_error(setValueLineAxis(.Object = chartCursor(), valueLineAxis = rep("a", 3)))
})

Try the rAmCharts package in your browser

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

rAmCharts documentation built on June 21, 2018, 5:03 p.m.