Browse Source

fixed tryCatch

master
boB Rudis 5 years ago
parent
commit
840971dd33
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 2
      R/check-package-urls.R

2
R/check-package-urls.R

@ -34,7 +34,7 @@ check_package_urls <- function() {
. } %>%
dplyr::mutate(status = purrr::map_dbl(URL, ~{
.pb$tick()$print()
tryCatch(httr::status_code(m_GET(url = .x)), error = 599)
tryCatch(httr::status_code(m_GET(url = .x)), error = function(x) 599)
})) %>%
janitor::clean_names() %>%
tibble::as_tibble() %>%

Loading…
Cancel
Save