1
0
mirror of https://github.com/msberends/AMR.git synced 2025-09-30 12:09:04 +02:00
This commit is contained in:
2025-09-20 17:14:07 +01:00
parent 33fb1849eb
commit adee419f1c
9 changed files with 62 additions and 55 deletions

2
R/ab.R
View File

@@ -514,7 +514,7 @@ pillar_shaft.ab <- function(x, ...) {
out[is.na(x)] <- font_na(NA)
# add the names to the drugs as mouse-over!
if (tryCatch(isTRUE(getExportedValue("ansi_has_hyperlink_support", ns = asNamespace("cli"))()), error = function(e) FALSE)) {
if (in_rstudio()) {
out[!is.na(x)] <- font_url(
url = paste0(x[!is.na(x)], ": ", ab_name(x[!is.na(x)])),
txt = out[!is.na(x)]