style_all | R Documentation |
Style all files in a project. Implemented as a wrapper for styler::style_dir()
that defaults
to styling .R
, .Rprofile
, .Rmd
, .Rmarkdown
, .Rnw
, and .qmd
files, excluding
files in packrat
, renv
, and R/RcppExports.R
.
style_all(
path = ".",
filetype = c("R", "Rprofile", "Rmd", "Rmarkdown", "Rnw", "Qmd"),
exclude_dirs = c("packrat", "renv"),
exclude_files = "R/RcppExports.R",
...
)
path |
Path to a directory with files to transform. |
filetype |
Vector of file extensions indicating which file types should
be styled. Case is ignored, and the |
exclude_dirs |
Character vector with directories to exclude (recursively). |
exclude_files |
Character vector with regular expressions to files that should be excluded from styling. |
... |
Arguments passed on to
|
## Not run:
style_all()
style_all("analysis", filetype = "Rmd")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.