Skip to content

Commit

Permalink
made safe_failed_deps
Browse files Browse the repository at this point in the history
  • Loading branch information
b-rodrigues committed Feb 25, 2024
1 parent 45a78f3 commit da742cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,10 @@ get_failed_dep <- function(url){
gsub(".*-r-", "", what$What) |>
gsub("-.*$", "", x=_)
}

safe_get_failed_dep <- function(...){
tryCatch(
get_failed_dep(...),
error = function(e) ""
)
}

0 comments on commit da742cf

Please sign in to comment.