tests/testthat/test-req_errors.R

test_that("req_error works", {
  testing_with_authentication("renewed_token")
  expect_error(user_blocked("407200271", n = Inf),
               "must be the same as the authenticating user")
})

Try the rtweet package in your browser

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

rtweet documentation built on Oct. 17, 2023, 1:11 a.m.