Nothing
context("pathway")
test_that("/pathway", {
skip_on_cran()
url <- getOption("epigraphdb.api.url")
trait <- "Body mass index"
r <- httr::RETRY("GET", glue::glue("{url}/pathway"),
query = list(
trait = trait
),
config = httr::add_headers(.headers = c("client-type" = "R", "ci" = "true"))
)
expect_equal(httr::status_code(r), 200)
expect_true(length(httr::content(r)) > 0)
})
test_that("pathway", {
skip_on_cran()
trait <- "Body mass index"
expect_error(
pathway(
trait = trait
),
NA
)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.