Skip to content

Commit

Permalink
change download method
Browse files Browse the repository at this point in the history
  • Loading branch information
OldLipe committed Apr 25, 2024
1 parent 020bb18 commit 5aab0ec
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions R/api_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,8 @@
if (.file_is_local(file)) {
file <- .file_path("file:https://", file, sep = "")
}
# httr::GET(
# url = file, httr::write_disk(path = out_file, overwrite = TRUE)
# )
download.file(
url = file, destfile = out_file,
quiet = FALSE
httr::GET(
url = file, httr::write_disk(path = out_file, overwrite = TRUE)
)
# Return file name
out_file
Expand Down

0 comments on commit 5aab0ec

Please sign in to comment.