tests/testthat/test-lat_lng.R

test_that("lat_lng works", {
  expect_error(search_tweets("lang:en", geocode = lookup_coords("usa"), n = 100))
})

test_that("lat_lng works on empty tweet", {
  expect_error(lat_lng(tweet(NULL)), NA)

})

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.