Running ‘testthat.R’ [14s/21s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Use conditionally testthat
  > tests_are_doable <- requireNamespace("rtweet", quietly = TRUE) &&
  +   requireNamespace("testthat", quietly = TRUE) &&
  +   requireNamespace("vcr", quietly = TRUE)
  > 
  > if (tests_are_doable) {
  +   library(testthat)
  +   library(rtweet)
  + 
  +   test_check("rtweet")
  + 
  + }
  [ FAIL 18 | WARN 0 | SKIP 110 | PASS 61 ]
  
  ══ Skipped tests (110) ═════════════════════════════════════════════════════════
  • Auth not available (82): 'test-auth.R:8:3', 'test-block.R:2:3',
    'test-clean_tweets.R:4:5', 'test-direct_messages.R:4:5',
    'test-extractors.R:4:5', 'test-favorites.R:5:5', 'test-favorites.R:16:5',
    'test-favorites.R:33:5', 'test-favorites.R:42:5', 'test-favorites.R:50:5',
    'test-followers.R:4:5', 'test-followers.R:17:5', 'test-friends.R:4:5',
    'test-friends.R:14:5', 'test-friends.R:30:5', 'test-friends.R:39:5',
    'test-friends.R:47:5', 'test-friends.R:55:5', 'test-friends.R:62:7',
    'test-geo_objects.R:113:5', 'test-graph-network.R:5:5',
    'test-graph-network.R:15:5', 'test-graph-network.R:25:5',
    'test-graph-network.R:35:5', 'test-graph-network.R:45:5',
    'test-graph-network.R:98:5', 'test-graph-network.R:106:5', 'test-http.R:4:5',
    'test-http.R:31:5', 'test-lists_members.R:4:5',
    'test-lists_memberships.R:4:5', 'test-lists_statuses.R:4:5',
    'test-lists_subscribers.R:4:5', 'test-lists_subscriptions.R:4:5',
    'test-lists_users.R:4:5', 'test-mentions.R:4:5', 'test-mentions.R:14:5',
    'test-methods.R:3:5', 'test-post-favorite.R:4:5', 'test-post-tweet.R:5:5',
    'test-post-tweet.R:30:5', 'test-post-tweet.R:40:5', 'test-post-user.R:3:5',
    'test-post-user.R:15:5', 'test-post-user.R:28:5', 'test-rate_limit.R:4:5',
    'test-rate_limit.R:12:5', 'test-rate_limit.R:21:5', 'test-rate_limit.R:33:5',
    'test-rate_limit.R:41:5', 'test-retweets.R:4:5', 'test-retweets.R:14:5',
    'test-retweets.R:22:5', 'test-search_users.R:4:5', 'test-statuses.R:14:5',
    'test-statuses.R:26:5', 'test-statuses.R:34:5', 'test-statuses.R:42:5',
    'test-statuses.R:51:5', 'test-statuses.R:59:5', 'test-statuses.R:68:5',
    'test-statuses.R:76:5', 'test-statuses.R:86:5', 'test-statuses.R:95:5',
    'test-statuses.R:106:5', 'test-statuses.R:115:5', 'test-subset.R:31:5',
    'test-timeline.R:4:5', 'test-timeline.R:29:5', 'test-timeline.R:36:5',
    'test-timeline.R:45:5', 'test-tokens.R:2:3', 'test-tokens.R:9:3',
    'test-trends.R:4:5', 'test-trends.R:20:5', 'test-trends.R:34:5',
    'test-tweet_object.R:4:5', 'test-users.R:4:5', 'test-users.R:17:5',
    'test-users.R:28:5', 'test-users.R:40:5', 'test-users.R:47:5'
  • No longer working (1): 'test-stream.R:2:3'
  • On CRAN (17): 'test-auth.R:2:3', 'test-auth.R:28:3', 'test-auth.R:39:3',
    'test-collections.R:2:3', 'test-next_cursor.R:12:3',
    'test-next_cursor.R:41:3', 'test-post-tweet.R:47:3',
    'test-post-tweet.R:60:3', 'test-post-tweet.R:83:3',
    'test-search_tweets.R:15:3', 'test-stream.R:16:3', 'test-stream_rules.R:2:3',
    'test-stream_rules.R:12:3', 'test-stream_rules.R:26:3',
    'test-stream_rules.R:40:3', 'test-tweet_threading.R:33:3',
    'test-user_id.R:4:3'
  • Requires different authentication (4): 'test-premium.R:4:5',
    'test-premium.R:17:5', 'test-premium.R:30:5', 'test-timeline.R:15:5'
  • Without old data (1): 'test-save_as_csv.R:2:3'
  • requires manual testing (3): 'test-limits.R:2:3', 'test-post-block.R:3:3',
    'test-post-message.R:2:3'
  • webshot::is_phantomjs_installed() is not TRUE (2): 'test-tweet_shot.R:4:5',
    'test-tweet_shot.R:20:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-coords.R:3:3'): lookup_coords returns coords data ──────────────
  Error in `lookup_coords("kansas city, mo")`: is.atomic(components) is not TRUE
  Backtrace:
      ▆
   1. └─rtweet::lookup_coords("kansas city, mo") at test-coords.R:3:2
   2.   └─base::stopifnot(is.atomic(address), is.atomic(components))
  ── Error ('test-extractors.R:16:5'): users_data works ──────────────────────────
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-extractors.R:15:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets("r") at test-extractors.R:16:4
   4.   └─rtweet:::search_params(...)
   5.     └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-graph-network.R:56:5'): graphing functions work ────────────────
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-graph-network.R:55:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets("twitter filter:verified") at test-graph-network.R:56:4
   4.   └─rtweet:::search_params(...)
   5.     └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-graph-network.R:76:5'): network_data works ─────────────────────
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-graph-network.R:75:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets("#rstats", n = 20) at test-graph-network.R:76:4
   4.   └─rtweet:::search_params(...)
   5.     └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-graph-network.R:87:5'): network_graph works ────────────────────
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-graph-network.R:86:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets("#rstats", n = 20) at test-graph-network.R:87:4
   4.   └─rtweet:::search_params(...)
   5.     └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-lat_lng.R:3:5'): lat_lng works ─────────────────────────────────
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-lat_lng.R:2:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets(...) at test-lat_lng.R:3:4
   4.   └─rtweet:::search_params(...)
   5.     └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-rbind.R:4:5'): do_call_rbind works ─────────────────────────────
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-rbind.R:3:2
   2. │ └─cassette$call_block(...)
   3. └─base::lapply(...) at test-rbind.R:4:4
   4.   └─rtweet (local) FUN(X[[i]], ...)
   5.     └─rtweet:::search_params(...)
   6.       └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-rbind.R:17:5'): rbind works ────────────────────────────────────
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-rbind.R:16:2
   2. │ └─cassette$call_block(...)
   3. └─base::lapply(...) at test-rbind.R:17:4
   4.   └─rtweet (local) FUN(X[[i]], ...)
   5.     └─rtweet:::search_params(...)
   6.       └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-search_tweets.R:4:5'): search_tweets returns tweets data and latlng ──
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-search_tweets.R:3:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets("#rstats", n = 50) at test-search_tweets.R:4:4
   4.   └─rtweet:::search_params(...)
   5.     └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-search_tweets.R:22:5'): non-existent search returns empty data frame ──
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-search_tweets.R:21:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets("abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc") at test-search_tweets.R:22:4
   4.   └─rtweet:::search_params(...)
   5.     └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-search_tweets.R:31:5'): search_tweets2 can search for multiple queries ──
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-search_tweets.R:30:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets2(c("#rstats", "open science"), n = 50) at test-search_tweets.R:31:4
   4.   └─base::Map("search_tweets", q, MoreArgs = dots)
   5.     └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
   6.       └─rtweet (local) `<fn>`(...)
   7.         └─rtweet:::search_params(...)
   8.           └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-search_tweets.R:40:5'): search_tweets uses POSIXct at created_at, #660 ──
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-search_tweets.R:39:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets2(c("#rstats", "open science"), n = 50) at test-search_tweets.R:40:4
   4.   └─base::Map("search_tweets", q, MoreArgs = dots)
   5.     └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
   6.       └─rtweet (local) `<fn>`(...)
   7.         └─rtweet:::search_params(...)
   8.           └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-search_tweets.R:48:5'): search_tweets2 works ───────────────────
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-search_tweets.R:47:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets2(...) at test-search_tweets.R:48:4
   4.   └─base::Map("search_tweets", q, MoreArgs = dots)
   5.     └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
   6.       └─rtweet (local) `<fn>`(...)
   7.         └─rtweet:::search_params(...)
   8.           └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-search_tweets.R:55:5'): search_tweets ──────────────────────────
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-search_tweets.R:54:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets(...) at test-search_tweets.R:55:4
   4.   └─rtweet:::search_params(...)
   5.     └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-subset.R:4:5'): [.tweets works ─────────────────────────────────
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-subset.R:3:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets("#rstats") at test-subset.R:4:4
   4.   └─rtweet:::search_params(...)
   5.     └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-ts_plot.R:4:5'): ts_plot works ─────────────────────────────────
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-ts_plot.R:3:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets("rstats", n = 100) at test-ts_plot.R:4:4
   4.   └─rtweet:::search_params(...)
   5.     └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-ts_plot.R:13:5'): ts_data works ────────────────────────────────
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-ts_plot.R:12:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets("rstats", n = 100) at test-ts_plot.R:13:4
   4.   └─rtweet:::search_params(...)
   5.     └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  ── Error ('test-ts_plot.R:21:5'): ts_plot grouped works ────────────────────────
  Error in `search_params(q, type = type, include_rts = include_rts, geocode = geocode, 
      ...)`: is.atomic(max_id) is not TRUE
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-ts_plot.R:20:2
   2. │ └─cassette$call_block(...)
   3. └─rtweet::search_tweets("rstats", n = 100) at test-ts_plot.R:21:4
   4.   └─rtweet:::search_params(...)
   5.     └─base::stopifnot(is.atomic(q), length(q) == 1L, is.atomic(max_id))
  
  [ FAIL 18 | WARN 0 | SKIP 110 | PASS 61 ]
  Error: Test failures
  Execution halted