tests/testthat/test-retweeted_by.R

test_that("retweeted_by works", {
  skip_if_offline()
  testing_with_authentication("bearer_testing_app")
  # Pinned tweets where deleted so there will be errors
  expect_error(tweet_retweeted_by("567053242429734913", parse = FALSE), NA)
  rb <- tweet_retweeted_by("567053242429734913", parse = TRUE)
  expect_s3_class(rb, "data.frame")

})

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.