Examples for 'styler::style_pkg'


Prettify R source code

Aliases: style_pkg

Keywords:

### ** Examples

## Not run: 
##D # the following is identical (because of ... and defaults)
##D # but the first is most convenient:
##D style_pkg(strict = TRUE)
##D style_pkg(style = tidyverse_style, strict = TRUE)
##D style_pkg(transformers = tidyverse_style(strict = TRUE))
##D 
##D # more options from `tidyverse_style()`
##D style_pkg(
##D   scope = "line_breaks",
##D   math_token_spacing = specify_math_token_spacing(zero = "'+'")
##D )
##D 
##D # don't write back and fail if input is not already styled
##D style_pkg("/path/to/pkg/", dry = "fail")
## End(Not run)

[Package styler version 1.7.0 Index]