mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 06:30:48 +01:00
(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 <noreply@anthropic.com>
This commit is contained in:
1 parent
e42237ff0d
commit
4aafe9a676
9 files changed
+9
-9
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
Package: AMR
|
Package: AMR
|
||||||
Version: 3.0.1.9102
|
Version: 3.0.1.9103
|
||||||
Date: 2026-10-04
|
Date: 2026-10-04
|
||||||
Title: Antimicrobial Resistance Data Analysis
|
Title: Antimicrobial Resistance Data Analysis
|
||||||
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# AMR 3.0.1.9102
|
# AMR 3.0.1.9103
|
||||||
|
|
||||||
Planned as v3.1.0, mid October 2026.
|
Planned as v3.1.0, mid October 2026.
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
#' @section Source:
|
#' @section Source:
|
||||||
#' World Health Organization (WHO) Collaborating Centre for Drug Statistics Methodology: \url{https://atcddd.fhi.no/atc_ddd_index/}
|
#' 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
|
#' @aliases ab
|
||||||
#' @return A [character] [vector] with additional class [`ab`]
|
#' @return A [character] [vector] with additional class [`ab`]
|
||||||
#' @seealso
|
#' @seealso
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
#' @section Source:
|
#' @section Source:
|
||||||
#' World Health Organization (WHO) Collaborating Centre for Drug Statistics Methodology: \url{https://atcddd.fhi.no/atc_ddd_index/}
|
#' 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
|
#' @aliases av
|
||||||
#' @return A [character] [vector] with additional class [`ab`]
|
#' @return A [character] [vector] with additional class [`ab`]
|
||||||
#' @seealso
|
#' @seealso
|
||||||
|
|||||||
@@ -847,7 +847,7 @@ if (files_changed()) {
|
|||||||
# Function to extract URLs from a file
|
# Function to extract URLs from a file
|
||||||
extract_urls_from_file <- function(file_path) {
|
extract_urls_from_file <- function(file_path) {
|
||||||
lines <- readLines(file_path, warn = FALSE)
|
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)
|
urls <- unlist(urls)
|
||||||
if (length(urls) == 0) {
|
if (length(urls) == 0) {
|
||||||
return(NULL)
|
return(NULL)
|
||||||
|
|||||||
+1
-1
@@ -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/}
|
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}{
|
\section{Download Our Reference Data}{
|
||||||
|
|||||||
+1
-1
@@ -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/}
|
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}{
|
\section{WHOCC}{
|
||||||
|
|||||||
+1
-1
@@ -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/}
|
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}{
|
\section{WHOCC}{
|
||||||
|
|||||||
+1
-1
@@ -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/}
|
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}{
|
\section{Download Our Reference Data}{
|
||||||
|
|||||||
Reference in new issue
Block a user