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:
case = "snake_case" # or "camelCase"spaces = 2
Options
Roughly supports the following configuration options:
Option | Default | Description |
---|---|---|
case | snake_case | Naming style for variables and functions |
spaces | 2 | Number of spaces to use for indentation |
Default Behavior
If no configuration file is found, Roughly will:
- Look for a
roughly.toml
file in the project root directory - Fall back to the default values if no file is found
- Use the defaults of
snake_case
naming convention and2
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.