mirror of
https://github.com/msberends/AMR.git
synced 2025-04-19 08:33:49 +02:00
(v2.1.1.9206) update precommit hook
This commit is contained in:
parent
ede1cdfd99
commit
7631e82ae6
@ -1,5 +1,5 @@
|
|||||||
Package: AMR
|
Package: AMR
|
||||||
Version: 2.1.1.9205
|
Version: 2.1.1.9206
|
||||||
Date: 2025-03-15
|
Date: 2025-03-15
|
||||||
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)
|
||||||
|
2
NEWS.md
2
NEWS.md
@ -1,4 +1,4 @@
|
|||||||
# AMR 2.1.1.9205
|
# AMR 2.1.1.9206
|
||||||
|
|
||||||
*(this beta version will eventually become v3.0. We're happy to reach a new major milestone soon, which will be all about the new One Health support! Install this beta using [the instructions here](https://msberends.github.io/AMR/#latest-development-version).)*
|
*(this beta version will eventually become v3.0. We're happy to reach a new major milestone soon, which will be all about the new One Health support! Install this beta using [the instructions here](https://msberends.github.io/AMR/#latest-development-version).)*
|
||||||
|
|
||||||
|
@ -626,25 +626,28 @@ suppressMessages(reset_AMR_locale())
|
|||||||
devtools::load_all(quiet = TRUE)
|
devtools::load_all(quiet = TRUE)
|
||||||
suppressMessages(set_AMR_locale("English"))
|
suppressMessages(set_AMR_locale("English"))
|
||||||
|
|
||||||
# Update URLs -------------------------------------------------------------
|
files_changed <- function(paths = "^(R|data)/") {
|
||||||
usethis::ui_info("Checking URLs for redirects")
|
|
||||||
invisible(urlchecker::url_update("."))
|
|
||||||
|
|
||||||
# Style pkg ---------------------------------------------------------------
|
|
||||||
usethis::ui_info("Styling package")
|
|
||||||
styler::style_pkg(include_roxygen_examples = FALSE,
|
|
||||||
exclude_dirs = list.dirs(full.names = FALSE, recursive = FALSE)[!list.dirs(full.names = FALSE, recursive = FALSE) %in% c("R", "tests")])
|
|
||||||
|
|
||||||
# Document pkg ------------------------------------------------------------
|
|
||||||
files_changed <- function(paths = c("R/", "data/")) {
|
|
||||||
tryCatch({
|
tryCatch({
|
||||||
changed_files <- system("git diff --name-only", intern = TRUE)
|
changed_files <- system("git diff --name-only", intern = TRUE)
|
||||||
any(changed_files %like% "^(R|data)/")
|
any(changed_files %like% paths)
|
||||||
}, error = function(e) TRUE)
|
}, error = function(e) TRUE)
|
||||||
}
|
}
|
||||||
if (interactive()) {
|
|
||||||
message("Skipping document in interactive mode")
|
# Update URLs -------------------------------------------------------------
|
||||||
} else if (files_changed()) {
|
if (files_changed()) {
|
||||||
|
usethis::ui_info("Checking URLs for redirects")
|
||||||
|
invisible(urlchecker::url_update("."))
|
||||||
|
}
|
||||||
|
|
||||||
|
# Style pkg ---------------------------------------------------------------
|
||||||
|
if (files_changed(paths = "^(R|tests)/")) {
|
||||||
|
sethis::ui_info("Styling package")
|
||||||
|
styler::style_pkg(include_roxygen_examples = FALSE,
|
||||||
|
exclude_dirs = list.dirs(full.names = FALSE, recursive = FALSE)[!list.dirs(full.names = FALSE, recursive = FALSE) %in% c("R", "tests")])
|
||||||
|
}
|
||||||
|
|
||||||
|
# Document pkg ------------------------------------------------------------
|
||||||
|
if (files_changed()) {
|
||||||
usethis::ui_info("Documenting package")
|
usethis::ui_info("Documenting package")
|
||||||
suppressMessages(devtools::document(quiet = TRUE))
|
suppressMessages(devtools::document(quiet = TRUE))
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
This knowledge base contains all context you must know about the AMR package for R. You are a GPT trained to be an assistant for the AMR package in R. You are an incredible R specialist, especially trained in this package and in the tidyverse.
|
This knowledge base contains all context you must know about the AMR package for R. You are a GPT trained to be an assistant for the AMR package in R. You are an incredible R specialist, especially trained in this package and in the tidyverse.
|
||||||
|
|
||||||
First and foremost, you are trained on version 2.1.1.9205. Remember this whenever someone asks which AMR package version you’re at.
|
First and foremost, you are trained on version 2.1.1.9206. Remember this whenever someone asks which AMR package version you’re at.
|
||||||
|
|
||||||
Below are the contents of the file, the file, and all the files (documentation) in the package. Every file content is split using 100 hypens.
|
Below are the contents of the file, the file, and all the files (documentation) in the package. Every file content is split using 100 hypens.
|
||||||
----------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------
|
Loading…
x
Reference in New Issue
Block a user