R/output_levels.R

Defines functions output_levels

Documented in output_levels

#' Print out quoted, comma-trailed terms, one per line
#'
#' @param x the first argument
#' @param ... additional arguments to be quoted and printed
#'
#' @return nothing, it just prints things
#' @export
#'
output_levels <- function(x, ...){
    .tmp <- c(x, rlang::list2(...))
    '"{.tmp}"' |>
        glue::glue() |>
        paste0(
            collapse = ",\n"
        ) |>
        cat()
}
higherX4Racine/hiRx documentation built on Nov. 18, 2024, 10:20 a.m.