powered by
Style the box::use() calls for a directory
style_box_use_dir( path = ".", recursive = TRUE, exclude_files = c(), exclude_dirs = c("packrat", "renv"), indent_spaces = 2, trailing_commas_func = FALSE )
Path to a directory with files to style.
A logical value indicating whether or not files in sub-directories
A character vector of regular expressions to exclude files (not paths) from styling.
A character vector of directories to exclude.
An integer scalar indicating tab width in units of spaces
A boolean to activate adding a trailing comma to the end of the lists of functions to attach.
Refer to style_box_use_text() for styling details.
style_box_use_text()
if (FALSE) { style_box_use_dir("path/to/dir") # to exclude `__init__.R` files from styling style_box_use_dir("path/to/dir", exclude_files = c("__init__\\.R")) }
Run the code above in your browser using DataLab