tests/testthat/test_genomicsEnglandQuery.R

test_that("test genomicsEnglandQuery works", {
  skip_on_cran()
  
  result <- genomicsEnglandQuery(ensemblId = "ENSG00000080815", efoId = "MONDO_0004975", size = 5)
  
  expect_true(is.null(result) || tibble::is_tibble(result))
  if (!is.null(result)) {
    expect_true(all(c("disease.id", "disease.name", "target.approvedSymbol",
                      "diseaseFromSource", "cohortPhenotypes", "confidence",
                      "allelicRequirements", "studyOverview", "studyId",
                      "literature", "approvedSymbol", "diseaseId",
                      "diseaseName", "genomicsEnglandCount") %in% colnames(result)))
  }
})

Try the otargen package in your browser

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

otargen documentation built on Aug. 9, 2025, 1:08 a.m.