From da742cffa74ed0c1a542413c7e6aef024b301d0f Mon Sep 17 00:00:00 2001 From: Bruno Rodrigues Date: Sun, 25 Feb 2024 19:38:53 +0100 Subject: [PATCH] made safe_failed_deps --- functions.R | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/functions.R b/functions.R index 47c1d9f..b28bdb0 100644 --- a/functions.R +++ b/functions.R @@ -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) "" + ) +}