tests/testthat/test-list_tweets.R

test_that("list_tweets works", {
  testing_with_authentication("bearer_testing_app")
  lt <- list_tweets("1150793074420998146")
  expect_s3_class(lt, "data.frame")
  expect_true(all(c("edit_history_tweet_ids", "id", "text") %in% colnames(lt)))
})

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.