tests/testthat/test-read_redcap_tables.R

# Test that the function throws an error when uri and token are not provided
test_that("read_redcap_tables throws error when uri and token are not provided",
          {
            testthat::expect_error(read_redcap_tables(uri, token))
          })

Try the REDCapCAST package in your browser

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

REDCapCAST documentation built on April 4, 2025, 3:18 a.m.