Skip to content

Configuration

Configuration options for Roughly

Roughly is deliberately opinionated and minimal in its configuration options. It prefers sensible defaults over excessive customization.

Configuration File

You can configure Roughly via a project-specific roughly.toml file placed at the root of your project:

roughly.toml
case = "snake_case" # or "camelCase"
spaces = 2

Options

Roughly supports the following configuration options:

OptionDefaultDescription
casesnake_caseNaming style for variables and functions
spaces2Number of spaces to use for indentation

Default Behavior

If no configuration file is found, Roughly will:

  1. Look for a roughly.toml file in the project root directory
  2. Fall back to the default values if no file is found
  3. Use the defaults of snake_case naming convention and 2 spaces for indentation

Roughly’s formatter and linter are opinionated tools that don’t aim to support every possible coding style. Instead, they enforce a consistent, readable style based on R community practices.