usethis (version 1.2.0)

use_tidy_style: Style according to the tidyverse style guide

Description

Styles the source code of a package, project or directory according to the tidyverse style guide with the package styler.

Usage

use_tidy_style(strict = TRUE)

Arguments

strict

Boolean indicating whether or not a strict version of styling should be applied. See styler::tidyverse_style() for details.

Value

Invisibly returns a data frame that indicates for each file considered for styling whether or not it was actually changed.

Warning

This function overwrites files (if styling results in a change of the code to be formatted). It is strongly suggested to only style files that are under version control or to create a backup copy.