Commit 7378c8d1 authored by aditya.bhagwat's avatar aditya.bhagwat
Browse files

index_genome: use method="curl" rather than method="auto"

parent c3f15383
Pipeline #154370 passed with stages
in 27 seconds
Package: multicrispr
Title: Multi-locus multi-purpose Crispr/Cas design
Version: 0.99.32
Version: 0.99.33
Encoding: UTF-8
Authors@R: c(person("Aditya", "Bhagwat", NULL, "aditya.bhagwat@mpi-bn.mpg.de", c("aut", "cre")),
person( "Johannes", "Graumann", NULL, 'johannes.graumann@mpi-bn.mpg.de',c("sad", "ctb")),
......
......@@ -249,7 +249,8 @@ index_genome <- function(
zipfile <- paste0(genomedir, '.zip')
message('\t\tDownload pre-indexed version
For a fresh build instead, set download = FALSE')
res <- tryCatch(download.file(url, zipfile), error = function(e) 1)
res <- tryCatch(download.file(url, zipfile, method="curl"),
error = function(e) 1)
if (res==0){
message('\t\tUnzip ')
utils::unzip(zipfile, exdir = dirname(genomedir))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment