R/utils-cli.R

Defines functions cat_path_output cat_path_input rule_text cat_checklist cat_text

# print text
cat_text <- function(...) {
  cat(paste0(..., "\n"), sep = "")
}

# stylize checklist items
cat_checklist <- function(...) {
  cli::cat_bullet(paste0(...), bullet = "tick", bullet_col = "green")
}

# print text with surrounding rules
rule_text <- function(text, ...) {
  cli::cat_rule(left = crayon::bold(text), ...)
}

# stylize input file path
cat_path_input <- function(...) {
  crayon::blue(encodeString(..., quote = '"'))
}

# stylize output file path
cat_path_output <- function(...) {
  crayon::green(encodeString(..., quote = '"'))
}

Try the biocompute package in your browser

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

biocompute documentation built on May 3, 2022, 9:08 a.m.