Skip to content

Commit

Permalink
specify httr in write_disk
Browse files Browse the repository at this point in the history
  • Loading branch information
AtaJadidAhari committed Jan 13, 2025
1 parent f74d7aa commit f4c3819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/helper-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ updateSeqlevelsStyle <- function(bsgenome, genome_assembly, new_style, old_style
file_url <- "https://www.cmm.in.tum.de/public/paper/FRASER/hg19_NCBI2UCSC.txt"
message(paste0("Downloading seqlevelStyle conversion dict: "), file_url)

response <- httr::GET(file_url, write_disk(conversion_dict_path, overwrite = TRUE))
response <- httr::GET(file_url, httr::write_disk(conversion_dict_path, overwrite = TRUE))

if (response$status_code == 200) {
assembly_report <- fread(conversion_dict_path)
Expand All @@ -726,7 +726,7 @@ updateSeqlevelsStyle <- function(bsgenome, genome_assembly, new_style, old_style
file_url <- "https://www.cmm.in.tum.de/public/paper/FRASER/hg38_NCBI2UCSC.txt"
message(paste0("Downloading seqlevelStyle conversion dict: "), file_url)

response <- httr::GET(file_url, write_disk(conversion_dict_path, overwrite = TRUE))
response <- httr::GET(file_url, httr::write_disk(conversion_dict_path, overwrite = TRUE))

if (response$status_code == 200) {
assembly_report <- fread(conversion_dict_path)
Expand Down

0 comments on commit f4c3819

Please sign in to comment.