Sfoglia il codice sorgente

allow no since_id

master
Garrick Aden-Buie 7 anni fa
parent
commit
2b2f619b73
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      inst/gathertweet.R

+ 3
- 1
inst/gathertweet.R Vedi File

--max_id <max_id> Return results with an ID less than (older than) or equal to max_id --max_id <max_id> Return results with an ID less than (older than) or equal to max_id
--since_id <since_id> Return results with an ID greather than (newer than) or equal to since_id, --since_id <since_id> Return results with an ID greather than (newer than) or equal to since_id,
automatically extracted from the existing tweets <file>, if it exists, and automatically extracted from the existing tweets <file>, if it exists, and
ignored when <max_id> is set. [default: last]
ignored when <max_id> is set. "none" for all available tweets. [default: last]
--no-parse Disable parsing of the results --no-parse Disable parsing of the results
--token <token> See {rtweet} for more information --token <token> See {rtweet} for more information
--retryonratelimit Wait and retry when rate limited (only relevant when n exceeds 18000 tweets) --retryonratelimit Wait and retry when rate limited (only relevant when n exceeds 18000 tweets)
since_id <- if (is.null(max_id)) { since_id <- if (is.null(max_id)) {
if (since_id == "last") { if (since_id == "last") {
last_seen_tweet(file = args$file) last_seen_tweet(file = args$file)
} else if (since_id == "none") {
NULL
} else since_id } else since_id
} }
if (!is.null(since_id)) log_info("Tweets from {since_id}") if (!is.null(since_id)) log_info("Tweets from {since_id}")

Loading…
Annulla
Salva