R/indent.R

Defines functions indent_code

indent_code <- function(code) {
  formatR::tidy_source(
    comment = TRUE, blank = TRUE, arrow = FALSE, brace.newline = FALSE,
    indent = 2, output = FALSE, text = code, width.cutoff = 80)$text.tidy
}
krlmlr/dplyr.benchmark documentation built on May 6, 2019, 6:06 p.m.