Skip to content

Commit

Permalink
add retry to .dl_mol_kegg
Browse files Browse the repository at this point in the history
  • Loading branch information
Aariq committed Sep 10, 2024
1 parent 7f7bb57 commit 1a91385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/get_mol_kegg.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ get_compounds_kegg <- function(pathway){
}
req_names <-
httr2::request("https://rest.kegg.jp/get") %>%
httr2::req_url_path_append(paste(ids, collapse = "+"))
httr2::req_url_path_append(paste(ids, collapse = "+")) %>%
httr2::req_retry(max_tries = 3)

resp_names <- httr2::req_perform(req_names) %>%
httr2::resp_body_string()
Expand Down

0 comments on commit 1a91385

Please sign in to comment.