diff --git a/DESCRIPTION b/DESCRIPTION index 16054385..506e23fb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: AMR -Version: 2.0.0.9003 -Date: 2023-03-16 +Version: 2.0.0.9004 +Date: 2023-03-20 Title: Antimicrobial Resistance Data Analysis Description: Functions to simplify and standardise antimicrobial resistance (AMR) data analysis and to work with microbial and antimicrobial properties by diff --git a/NEWS.md b/NEWS.md index ddd8ef7a..d6d049cd 100755 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# AMR 2.0.0.9003 +# AMR 2.0.0.9004 ## Changed * formatting fix for `sir_interpretation_history()` diff --git a/R/antibiogram.R b/R/antibiogram.R index f8911de4..4cac33c1 100755 --- a/R/antibiogram.R +++ b/R/antibiogram.R @@ -224,7 +224,7 @@ #' # in an Rmd file, you would just need to return `ureido` in a chunk, #' # but to be explicit here: #' if (requireNamespace("knitr")) { -#' knitr::knit_print(ureido) +#' cat(knitr::knit_print(ureido)) #' } #' #' diff --git a/R/italicise_taxonomy.R b/R/italicise_taxonomy.R index 30f584a5..5acb8d73 100755 --- a/R/italicise_taxonomy.R +++ b/R/italicise_taxonomy.R @@ -57,7 +57,7 @@ italicise_taxonomy <- function(string, type = c("markdown", "ansi")) { before <- "*" after <- "*" } else if (type == "ansi") { - if (!has_colour()) { + if (!has_colour() && !identical(Sys.getenv("IN_PKGDOWN"), "true")) { return(string) } before <- "\033[3m" diff --git a/man/antibiogram.Rd b/man/antibiogram.Rd index 7f97e1ba..c255e9f7 100644 --- a/man/antibiogram.Rd +++ b/man/antibiogram.Rd @@ -247,7 +247,7 @@ ureido <- antibiogram(example_isolates, # in an Rmd file, you would just need to return `ureido` in a chunk, # but to be explicit here: if (requireNamespace("knitr")) { - knitr::knit_print(ureido) + cat(knitr::knit_print(ureido)) }