Style a package

style(config_file = "tergo.toml", configuration = list(), ...)

Arguments

config_file

(character) The path to the configuration file. Default "tergo.toml".

configuration

(list) Configuration for formatting. Default list().

...

additional parameters to style_pkg()

Value

No return value, called for side effects.

Details

Configuration is read from a file named tergo.toml in the root of the package. The precedence of the configuration is (from the highest to lowest):

  1. The configuration passed to the function.

  2. The configuration file.

To see possible configuration options, see get_default_config().

Examples

style()
style(config_file = "tergo.toml", configuration = list())