styler-package | R Documentation |
styler allows you to format .R
, .Rmd
, .Rmarkdown
and/or
.qmd
, .Rnw
files, R packages, or entire R source trees
according to a style guide.
The following functions can be used for styling:
style_text()
to style a character vector.
style_file()
to style a single file.
style_dir()
to style all files in a directory.
style_pkg()
to style the source files of an R package.
styler_addins (RStudio Addins) to style either selected code or the active file.
Maintainer: Lorenz Walthert lorenz.walthert@icloud.com
Authors:
Kirill Müller kirill@cynkra.com (ORCID)
Other contributors:
Indrajeet Patil patilindrajeet.science@gmail.com (ORCID) (@patilindrajeets) [contributor]
Useful links:
Report bugs at https://github.com/r-lib/styler/issues
style_text("call( 1)")
style_text("1 + 1", strict = FALSE)
style_text("a%>%b", scope = "spaces")
style_text("a%>%b; a", scope = "line_breaks")
style_text("a%>%b; a", scope = "tokens")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.