tests/testthat/helper-functions.R

clean_cli_output <- function(x) {
    x <- capture_messages(print(x))
    x <- cli::ansi_strip(x)
    x <- x[!(x %in% c("\n", "\r\r", "\r \r"))]
    x <- x[grep("^(──|--)", x, invert = TRUE)]
    gsub("\\✔|\\✓", "v", x)
}

Try the sdcLog package in your browser

Any scripts or data that you put into this service are public.

sdcLog documentation built on March 20, 2022, 1:06 a.m.