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 May 29, 2024, 7:47 a.m.