Learn R Programming

tergo (version 0.1.9)

style: Style a package

Description

Style a package

Usage

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

Value

No return value, called for side effects.

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

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

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

Run the code above in your browser using DataLab