Skip to content
Snippets Groups Projects
Commit df1cdb71 authored by Andreas Gattringer's avatar Andreas Gattringer
Browse files

hardcode 'wb' mode for zip file downloads

parent 857f4a11
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ download_cats_quickstart_data <- function(install.dir, redownload = F, reextract ...@@ -43,7 +43,7 @@ download_cats_quickstart_data <- function(install.dir, redownload = F, reextract
timeout <- R.utils::getOption("timeout") timeout <- R.utils::getOption("timeout")
R.utils::setOption("timeout", 3600) R.utils::setOption("timeout", 3600)
result <- result <-
utils::download.file(newest_url, destfile = destination_file) utils::download.file(newest_url, destfile = destination_file, mode="wb")
R.utils::setOption("timeout", timeout) R.utils::setOption("timeout", timeout)
if (result != 0) { if (result != 0) {
...@@ -105,7 +105,7 @@ download_cats_for_windows <- function(install.dir, redownload = F, reextract = F ...@@ -105,7 +105,7 @@ download_cats_for_windows <- function(install.dir, redownload = F, reextract = F
print(sprintf("Downloading %s to %s", newest_url, destination_file)) print(sprintf("Downloading %s to %s", newest_url, destination_file))
timeout <- R.utils::getOption("timeout") timeout <- R.utils::getOption("timeout")
result <- result <-
utils::download.file(newest_url, destfile = destination_file) utils::download.file(newest_url, destfile = destination_file, mode="wb")
R.utils::setOption("timeout", timeout) R.utils::setOption("timeout", timeout)
if (result != 0) { if (result != 0) {
stop("Error downloading CATS") stop("Error downloading CATS")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment