tests/testthat/test-private.R

testthat::test_that("Execute Cohort Pathways", {
  testthat::expect_error(CohortPathways:::createIfNotExist(type = "file"))
  testthat::expect_error(CohortPathways:::createIfNotExist(type = "file", name = NULL))
  testthat::expect_no_error(CohortPathways:::createIfNotExist(type = "folder", name = file.path(
    tempdir(),
    tempfile()
  )))
})

Try the CohortPathways package in your browser

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

CohortPathways documentation built on April 4, 2025, 2:41 a.m.