tests/testthat/test-demo.R

if (!.Call(`_rxode2_isIntel`)) {
  test_that("Demo runs successfully", {
    skip_if_not(dir.exists(file.path(system.file(package = "rxode2"), "demo")), "demo not installed")
    expect_error(suppressWarnings({
      demo("demo1", "rxode2", ask = FALSE, echo = FALSE)
    }), NA)
  })
}

Try the rxode2 package in your browser

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

rxode2 documentation built on Oct. 30, 2024, 9:06 a.m.