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"
)
nlmixrdevelopment/RxODE documentation built on April 10, 2022, 5:36 a.m.