Skip to content

Commit c473f31

Browse files
committed
add mode = "wb" to download.file()
1 parent d3e64a1 commit c473f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/import_gtfs.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ import_gtfs <- function(path,
9999

100100
if (path_is_url) {
101101
tmp <- fs::file_temp(pattern = "gtfs", ext = ".zip")
102-
utils::download.file(path, tmp, method = "auto", quiet = quiet)
102+
utils::download.file(path, tmp, method = "auto", quiet = quiet, mode = "wb")
103103

104104
if (!quiet) message("File downloaded to ", tmp, ".")
105105

0 commit comments

Comments
 (0)