1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-10 12:21:53 +02:00

(v2.1.1.9250) Automated README and index.md

This commit is contained in:
2025-04-21 15:37:26 +02:00
parent be13934fe7
commit 4a336d040c
11 changed files with 715 additions and 165 deletions

View File

@ -656,6 +656,13 @@ if (files_changed()) {
suppressMessages(devtools::document(quiet = TRUE))
}
# Update index.md and README.md -------------------------------------------
if (files_changed("man/microorganisms.Rd") | files_changed("man/antimicrobials.Rd") | files_changed("man/clinical_breakpoints.Rd") | files_changed("man/antibiogram.Rd")) {
usethis::ui_info("Update index.md")
suppressWarnings(rmarkdown::render("index.Rmd", quiet = TRUE))
suppressWarnings(rmarkdown::render("README.Rmd", quiet = TRUE))
}
# Finished ----------------------------------------------------------------
usethis::ui_done("All done")
suppressMessages(reset_AMR_locale())