tests/testthat/test-request.R

test_that("requesting works", {
  res <- do_request("https://httpbin.org/status/414", list(), timeout_seconds = 10 * 60)
  expect_equal(res$status_code, 414)
})

Try the epidatr package in your browser

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

epidatr documentation built on June 22, 2024, 9:15 a.m.