inst/tinytest/test-chkGraphicsOpt.R

# File created by roxut; edit the function definition file, not this file

# Test found in chkGraphicsOpt.R:19 (file:line)
  

# check for 'base'
options(ChemoSpecGraphics = "base")
expect_equal(chkGraphicsOpt(), "base")

# check for 'ggplot2'
options(ChemoSpecGraphics = "ggplot2")
expect_equal(chkGraphicsOpt(), "ggplot2")

# check for 'plotly'
options(ChemoSpecGraphics = "plotly")
expect_equal(chkGraphicsOpt(), "plotly")

# check for invalid mode
options(ChemoSpecGraphics = "xyz")
expect_equal(chkGraphicsOpt(), "base")

Try the ChemoSpecUtils package in your browser

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

ChemoSpecUtils documentation built on May 29, 2024, 3:12 a.m.