Skip to content

Commit

Permalink
only display progress bar if there are more than 100 records to be re…
Browse files Browse the repository at this point in the history
…turned to avoid calling pb_tick on a completed progress bar in a loop #36
  • Loading branch information
njahn82 committed Nov 20, 2020
1 parent 1bbb64d commit e76c4a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/epmc_search.r
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ epmc_search <- function(query = NULL,
if (page_token == out$next_cursor)
break
i <- i + 1
if (verbose == TRUE)
if (verbose == TRUE && hits > 100)
pb$tick()
page_token <- out$next_cursor
if (output == "raw") {
Expand Down

0 comments on commit e76c4a5

Please sign in to comment.