Explorar el Código

Pass parse and token from gathertweet to update_tweets()

simplify
Garrick Aden-Buie hace 7 años
padre
commit
224d41925d
Se han modificado 2 ficheros con 7 adiciones y 2 borrados
  1. +1
    -1
      R/tweet_io.R
  2. +6
    -1
      inst/gathertweet.R

+ 1
- 1
R/tweet_io.R Ver fichero

} }
tweets <- bind_rows( tweets <- bind_rows(
tweets, tweets,
rtweet::lookup_statuses(status_id[idx_start:idx_end])
rtweet::lookup_statuses(status_id[idx_start:idx_end], ...)
) )
} }



+ 6
- 1
inst/gathertweet.R Ver fichero

# Update ------------------------------------------------------------------ # Update ------------------------------------------------------------------
} else if (isTRUE(args$update)) { } else if (isTRUE(args$update)) {
logger("Updating tweets in {args$file}") logger("Updating tweets in {args$file}")
tweets <- update_tweets(file = args$file)
tweets <- update_tweets(
file = args$file,
# passed to rtweet::lookup_statuses()
parse = !args[["no-parse"]],
token = args$token
)
log_debug("Status lookup returned {nrow(tweets)} tweets") log_debug("Status lookup returned {nrow(tweets)} tweets")
if (args$backup) backup_tweets(args$file) if (args$backup) backup_tweets(args$file)
tweets <- save_tweets(tweets, args$file) tweets <- save_tweets(tweets, args$file)

Cargando…
Cancelar
Guardar