rfmt_dir: Format R code in a directory tree using the 'rfmt' formatter

Description Usage Arguments

Description

This function applies the the rfmt R source code formatting tool the R source file(s) located in a specified directory and (optionally) its descendents.

Usage

1
2
rfmt_dir(directory, pattern = "\\.[RrSs]$", all.files = FALSE,
  recursive = FALSE, opts = list())

Arguments

directory

a character string giving the location of the directory containing R source code.

pattern

a character string comprising a regular expression used to distinguish R source code files. By default, looks for files with an extension "r" or "s" (lower- or upper case).

all.files

logical, TRUE iff invisible files, as well as visible files, are to be examined.

recursive

logical, TRUE iff descendent directories of that specified by the parameter directory are to be examined.

opts

options to rfmt, supplied as a named list.


google/rfmt documentation built on May 17, 2019, 7:59 a.m.