From 5daedbb627ca4fb76b23285fbd8fc9fb3477cfd8 Mon Sep 17 00:00:00 2001 From: slzhao Date: Thu, 2 Mar 2023 10:33:18 -0600 Subject: [PATCH] change download.file mode to "wb" Need "wb" mode to download sqlite file correctly in Windows. --- R/networks_enrich.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/networks_enrich.R b/R/networks_enrich.R index 6c42cd37..cc3a04e9 100644 --- a/R/networks_enrich.R +++ b/R/networks_enrich.R @@ -274,7 +274,7 @@ QueryPhenoSQLite <- function(table.nm, genes, cmpds, min.score){ sqlite.path <- paste0(url.pre, "MetPriCNet.sqlite"); pheno.db <- .get.sqlite.con(sqlite.path); }else{ - download.file("https://www.xialab.ca/resources/sqlite/MetPriCNet.sqlite", "MetPriCNet.sqlite") + download.file("https://www.xialab.ca/resources/sqlite/MetPriCNet.sqlite", "MetPriCNet.sqlite",mode="wb") pheno.db <- dbConnect(SQLite(), "MetPriCNet.sqlite"); }