Skip to content

Commit

Permalink
fix: fix csv download issue on windows (#1292)
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi authored Nov 19, 2024
1 parent 26f155e commit a41515d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/io_csv.R
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ check_is_link = function(path, reuse_downloaded, raise_error = FALSE) {
cache_temp_file[[actual_url]] = tempfile()
}
if (isFALSE(reuse_downloaded) || isFALSE(file.exists(cache_temp_file[[actual_url]]))) {
download.file(url = actual_url, destfile = cache_temp_file[[actual_url]])
download.file(url = actual_url, destfile = cache_temp_file[[actual_url]], mode = "wb")
message(paste("tmp file placed in \n", cache_temp_file[[actual_url]]))
}

Expand Down

0 comments on commit a41515d

Please sign in to comment.