R/styleCode.R

Defines functions styleCode

styleCode <- function(x) {
  if (rlang::is_installed("styler")) {
    x <- styler::style_text(x)
  } else {
    cli::cli_inform(c("i" = "{.pkg styler} not installed, code not styled."))
  }
  x <- as.character(x)
  return(x)
}

Try the OmopViewer package in your browser

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

OmopViewer documentation built on April 15, 2025, 5:08 p.m.