tests/testthat/test-package.R

test_that("loading", {
  default_opts <- list(
    webmorph.verbose = TRUE,
    webmorph.line.color = "blue",
    webmorph.pt.color = "green",
    webmorph.fill = "white",
    webmorph.server = "https://webmorph.org",
    webmorph.plot = "inline",
    webmorph.plot.maxwidth = 2400,
    webmorph.plot.maxheight = 2400
  )
  
  for (i in seq_along(default_opts)) {
    opt_val <- options(names(default_opts[i]))
    expect_equal(opt_val, default_opts[i])
  }
})

Try the webmorphR package in your browser

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

webmorphR documentation built on June 2, 2022, 5:07 p.m.