interpretation fixes

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2023-07-11 09:50:45 +02:00
1 parent 5e1221bceb
commit 8df1cd8d97
10 files changed
+63 -28

No files matched your search

+7
View File
@@ -545,6 +545,13 @@ is.ab <- function(x) {
pillar_shaft.ab <- function(x, ...) {
out <- trimws(format(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)) {
out[!is.na(x)] <- font_url(url = ab_name(x[!is.na(x)], language = NULL),
txt = out[!is.na(x)])
}
create_pillar_column(out, align = "left", min_width = 4)
}