Skip to content

Commit

Permalink
Allow guestimate of download progress (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinleinweber committed Sep 30, 2018
1 parent 4aa7b6e commit 6534e7a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion R/util-aggregate_datasets.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ aggregate_datasets <- function(payload, from_IDs = FALSE) {
IDs <- URLs_to_IDs(URLs)
}

message("Downloading BacDive IDs: ", appendLF = FALSE)
message(paste0(
"Downloading BacDive IDs (",
min(as.integer(IDs)),
" to ",
max(as.integer(IDs)),
", but not necessarily contiguous): "
))
taxon_data <-
purrr::map(.x = purrr::map(.x = URLs, .f = download), jsonlite::fromJSON)
names(taxon_data) <- IDs
Expand Down

0 comments on commit 6534e7a

Please sign in to comment.