tests/testthat/test-demo.R

rxodeTest(
  {
    test_that("Demo runs successfully", {
      skip_if_not(dir.exists(file.path(system.file(package = "RxODE"), "demo")), "demo not installed")
      expect_error(suppressWarnings({
        demo("demo1", "RxODE", ask = FALSE, echo = FALSE)
      }), NA)
    })
  },
  test = "demo"
)

Try the RxODE package in your browser

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

RxODE documentation built on March 23, 2022, 9:06 a.m.