context("search_users")
test_that("search_users returns users data", {
skip_on_cran()
n <- 3
x <- search_users("twitter", n = n, verbose = FALSE)
expect_equal(is.data.frame(x), TRUE)
expect_named(x)
expect_true("user_id" %in% names(x))
expect_gt(nrow(x), 2)
expect_gt(ncol(x), 15)
expect_true(all(c("text", "retweet_count") %in% names(x)))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.