Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

Commit

Permalink
edit n.times in get_timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mkearney committed Oct 15, 2018
1 parent ecbc94e commit 274b335
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/timeline.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ get_timeline_call <- function(user,
if (check) {
rl <- rate_limit(token, query)
n.times <- rl[["remaining"]]
if (length(n.times) == 0 || !is.numeric(n.times)) {
n.times <- 0
}
n.times <- n.times[1]
if (n %/% 200 < n.times) {
n.times <- ceiling(n / 200L)
}
Expand Down

0 comments on commit 274b335

Please sign in to comment.