Skip to content

Commit

Permalink
Add mode = "wb" to download command
Browse files Browse the repository at this point in the history
  • Loading branch information
oligomyeggo committed Feb 2, 2024
1 parent 8efc782 commit c6fd287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/base.R
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pluto_download <- function(url_path, dest_filename, api_token=NULL) {

if (!is.null(resp_obj$url)){

utils::download.file(resp_obj$url, destfile = dest_filename, quiet = T)
utils::download.file(resp_obj$url, destfile = dest_filename, quiet = T, mode = "wb")

} else{
stop('Download response did not contain a valid signed URL')
Expand Down

0 comments on commit c6fd287

Please sign in to comment.