Learn R Programming

cards (version 0.3.0)

.cli_groups_and_variable: Locate Condition Messages in an ARD

Description

Prints a string of all group##/group##_level column values and variable column values where condition messages occur, formatted using glue syntax.

Usage

.cli_groups_and_variable(x)

Value

a string

Arguments

x

(data.frame)
an ARD data frame of class 'card'

Examples

Run this code
ard <- ard_continuous(
  ADSL,
  by = ARM,
  variables = AGE,
  statistic = ~ list(
    mean = \(x) mean(x),
    mean_warning = \(x) {
      warning("warn1")
      warning("warn2")
      mean(x)
    },
    err_fn = \(x) stop("'tis an error")
  )
)

cards:::.cli_groups_and_variable(ard)

Run the code above in your browser using DataLab