Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

styler-package

Non-invasive pretty printing of R code


Description

styler allows you to format .R files, packages or entire R source trees according to a style guide. The following functions can be used for styling:

Author(s)

Maintainer: Lorenz Walthert lorenz.walthert@icloud.com

Authors:

See Also

Useful links:

Examples

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")

styler

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.