tests/testthat/test-tweet_embed.R

test_that("tweet_embed() returns a string", {
  
  vcr::use_cassette("tweet_embed", {
    out <- tweet_embed("kearneymw", "1087047171306856451")
  })
  expect_type(out, "character")
})

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.