styler (version 1.1.0)

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,
  include_roxygen_examples)

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 file types should be styled. Case is ignored, and the . is optional, e.g. c(".R", ".Rmd", ".Rnw") or c("r", "rmd", "rnw").

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.

include_roxygen_examples

Whether or not to style code in roxygen examples.