styler (version 1.0.9000)

prettify_any: Prettify R code in current working directory

Description

This is a helper function for style_dir.

Usage

prettify_any(transformers, filetype, recursive, exclude_files)

Arguments

transformers

A set of transformer functions. This argument is most conveniently constructed via the style argument and .... See 'Examples'.

filetype

Vector of file extensions indicating which filetypes should be styled. Case is ignored, and the . is optional, e.g. c(".R", ".Rmd") or c("r", "rmd").

recursive

A logical value indicating whether or not files in subdirectories should be styled as well.

exclude_files

Character vector with paths to files that should be excluded from styling.