From 4aafe9a6760b0beeefdf813f36535311c17a0039 Mon Sep 17 00:00:00 2001 From: Matthijs Berends Date: Sun, 4 Oct 2026 19:53:40 +0200 Subject: [PATCH] (v3.0.1.9103) Replace dead EC Union Register URLs; URL check no longer includes closing braces The pre-commit URL extractor captured the closing brace of \url{}, which made the EC server redirect to the dead health.ec.europa.eu domain, after which urlchecker::url_update() wrote that dead URL back into R/ab.R and R/av.R. Co-Authored-By: Claude Opus 5.5 --- DESCRIPTION | 2 +- NEWS.md | 2 +- R/ab.R | 2 +- R/av.R | 2 +- data-raw/_pre_commit_checks.R | 2 +- man/ab_property.Rd | 2 +- man/as.ab.Rd | 2 +- man/as.av.Rd | 2 +- man/av_property.Rd | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 4e194cbbc..353dca2e2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: AMR -Version: 3.0.1.9102 +Version: 3.0.1.9103 Date: 2026-10-04 Title: Antimicrobial Resistance Data Analysis Description: Functions to simplify and standardise antimicrobial resistance (AMR) diff --git a/NEWS.md b/NEWS.md index f9b6dacab..290507683 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# AMR 3.0.1.9102 +# AMR 3.0.1.9103 Planned as v3.1.0, mid October 2026. diff --git a/R/ab.R b/R/ab.R index b9fb9df03..d4f9e7241 100755 --- a/R/ab.R +++ b/R/ab.R @@ -54,7 +54,7 @@ #' @section Source: #' World Health Organization (WHO) Collaborating Centre for Drug Statistics Methodology: \url{https://atcddd.fhi.no/atc_ddd_index/} #' -#' European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: \url{https://health.ec.europa.eu/documents/community-register/html/index_en.htm} +#' European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: \url{https://ec.europa.eu/health/documents/community-register/html/index_en.htm} #' @aliases ab #' @return A [character] [vector] with additional class [`ab`] #' @seealso diff --git a/R/av.R b/R/av.R index eaf5c6fb7..b10344407 100755 --- a/R/av.R +++ b/R/av.R @@ -51,7 +51,7 @@ #' @section Source: #' World Health Organization (WHO) Collaborating Centre for Drug Statistics Methodology: \url{https://atcddd.fhi.no/atc_ddd_index/} #' -#' European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: \url{https://health.ec.europa.eu/documents/community-register/html/reg_hum_atc.htm} +#' European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: \url{https://ec.europa.eu/health/documents/community-register/html/reg_hum_atc.htm} #' @aliases av #' @return A [character] [vector] with additional class [`ab`] #' @seealso diff --git a/data-raw/_pre_commit_checks.R b/data-raw/_pre_commit_checks.R index d5036df3f..1b7377999 100644 --- a/data-raw/_pre_commit_checks.R +++ b/data-raw/_pre_commit_checks.R @@ -847,7 +847,7 @@ if (files_changed()) { # Function to extract URLs from a file extract_urls_from_file <- function(file_path) { lines <- readLines(file_path, warn = FALSE) - urls <- stringr::str_extract_all(lines, "https?://[^\\s)\"'>]+") + urls <- stringr::str_extract_all(lines, "https?://[^\\s)\"'>}]+") urls <- unlist(urls) if (length(urls) == 0) { return(NULL) diff --git a/man/ab_property.Rd b/man/ab_property.Rd index 72bd88770..533ed506f 100644 --- a/man/ab_property.Rd +++ b/man/ab_property.Rd @@ -101,7 +101,7 @@ The function \code{\link[=set_ab_names]{set_ab_names()}} is a special column ren World Health Organization (WHO) Collaborating Centre for Drug Statistics Methodology: \url{https://atcddd.fhi.no/atc_ddd_index/} -European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: \url{https://health.ec.europa.eu/documents/community-register/html/index_en.htm} +European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: \url{https://ec.europa.eu/health/documents/community-register/html/index_en.htm} } \section{Download Our Reference Data}{ diff --git a/man/as.ab.Rd b/man/as.ab.Rd index 00f56f5e9..61afa9977 100644 --- a/man/as.ab.Rd +++ b/man/as.ab.Rd @@ -62,7 +62,7 @@ You can add your own manual codes to be considered by \code{\link[=as.ab]{as.ab( World Health Organization (WHO) Collaborating Centre for Drug Statistics Methodology: \url{https://atcddd.fhi.no/atc_ddd_index/} -European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: \url{https://health.ec.europa.eu/documents/community-register/html/index_en.htm} +European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: \url{https://ec.europa.eu/health/documents/community-register/html/index_en.htm} } \section{WHOCC}{ diff --git a/man/as.av.Rd b/man/as.av.Rd index 19f3cd9a0..3b7162700 100644 --- a/man/as.av.Rd +++ b/man/as.av.Rd @@ -44,7 +44,7 @@ Note: the \code{\link[=as.av]{as.av()}} and \code{\link[=av_property]{av_*}} fun World Health Organization (WHO) Collaborating Centre for Drug Statistics Methodology: \url{https://atcddd.fhi.no/atc_ddd_index/} -European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: \url{https://health.ec.europa.eu/documents/community-register/html/reg_hum_atc.htm} +European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: \url{https://ec.europa.eu/health/documents/community-register/html/reg_hum_atc.htm} } \section{WHOCC}{ diff --git a/man/av_property.Rd b/man/av_property.Rd index 35ce82403..b90ea5068 100644 --- a/man/av_property.Rd +++ b/man/av_property.Rd @@ -74,7 +74,7 @@ The function \code{\link[=av_url]{av_url()}} will return the direct URL to the o World Health Organization (WHO) Collaborating Centre for Drug Statistics Methodology: \url{https://atcddd.fhi.no/atc_ddd_index/} -European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: \url{https://health.ec.europa.eu/documents/community-register/html/reg_hum_atc.htm} +European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: \url{https://ec.europa.eu/health/documents/community-register/html/reg_hum_atc.htm} } \section{Download Our Reference Data}{