tests/testthat/test-clinicaltrials_gov_dates.R

test_that("ClinicalTrials.gov version dates download correctly", {
    result <- clinicaltrials_gov_dates("NCT00942747")
    expect_equal(
        "2013-04-15" %in% result$date || 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.