1
0
mirror of https://github.com/msberends/AMR.git synced 2026-04-06 06:15:53 +02:00

(v3.0.1.9044) fix old R version

This commit is contained in:
2026-04-04 11:51:50 +02:00
parent 225493192c
commit 6c24718893
8 changed files with 30 additions and 24 deletions

2
R/ab.R
View File

@@ -554,7 +554,7 @@ type_sum.ab <- function(x, ...) {
print.ab <- function(x, ...) {
if (!is.null(attributes(x)$amr_selector)) {
function_name <- attributes(x)$amr_selector
if (pkg_is_available("cli", min_version = "3.0.0")) {
if (has_cli_rlang()) {
cli::cli_inform(c(
"i" = paste0("This {.cls ab} vector was retrieved using {.fun ", function_name, "}, which should normally be used inside a {.pkg dplyr} verb or {.cls data.frame} call, e.g.:"),
paste0("\u00a0\u00a0", AMR_env$bullet_icon, " ", highlight_code(paste0("your_data %>% select(", function_name, "())"))),