tests/testthat/test-httr2.R

test_that("bbk_progress respects the bbk.progress option", {
  withr::local_options(bbk.progress = NULL)
  expect_identical(bbk_progress(), TRUE)
  withr::local_options(bbk.progress = FALSE)
  expect_identical(bbk_progress(), FALSE)
  withr::local_options(bbk.progress = NA)
  expect_identical(bbk_progress(), FALSE)
})

Try the bbk package in your browser

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

bbk documentation built on Oct. 21, 2026, 5:14 p.m.