tests/testthat/test-clinicaltrials_gov_version_latest.R

test_that("ClinicalTrials.gov version downloads latest version correctly", {
    result <- clinicaltrials_gov_version("NCT00942747", -1)
    expect_equal(
        length(result) == 24 || result == "Error",
        TRUE
    )
})

Try the cthist package in your browser

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

cthist documentation built on Nov. 5, 2023, 1:09 a.m.