tests/testthat/test-data.R

library(ctrialsgov)

test_that("sample data loads okay", {
  ctgov_load_sample()
  res <- ctgov_query(description_kw = "cancer")
  expect_equal(ncol(res), 32L)
})

Try the ctrialsgov package in your browser

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

ctrialsgov documentation built on Aug. 8, 2025, 7:39 p.m.