tests/testthat/test-lists_users.R

test_that("lists_users returns data frame with nrow > 1", {
  
  vcr::use_cassette("list_users1", {
    x <- lists_users("kearneymw")
  })
  expect_true(is.data.frame(x))
  expect_gt(nrow(x), 0)
})

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.