Skip to content

Commit

Permalink
Update mx_download.R
Browse files Browse the repository at this point in the history
  • Loading branch information
YaoxiangLi committed Oct 3, 2024
1 parent 36290cb commit 0b97aa1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/mx_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#' @examples
#' \donttest{
#' mx_results <- mx_search(mx_snapshot(), query = "10.1101/2020.02.25.20021568")
#' mx_download(mx_results, directory=tempdir())
#' mx_download(mx_results, directory = tempdir())
#' }
#' @family helper
#' @export
Expand Down Expand Up @@ -86,7 +86,9 @@ mx_download <- function(mx_results,
))

sleep_time <- runif(1, 10, 13)
if(nrow(mx_results)>1) {Sys.sleep(sleep_time)}
if (nrow(mx_results) > 1) {
Sys.sleep(sleep_time)
}

pmx_results <-
try(download.file(
Expand Down

0 comments on commit 0b97aa1

Please sign in to comment.