Getting Started
Installation and basic setup for Roughly
This guide will walk you through installing and configuring Roughly for your R projects.
Roughly CLI
Installation
- Download the pre-built binary for your platform from the GitHub Releases page
- Add the binary to your system PATH
Usage
Roughly provides several commands to format code, check for issues, and run a language server:
# Format R filesroughly fmt # Format files in current directoryroughly fmt path/to/files # Format files at the specific path
# Check for issuesroughly check # Lint files in current directory
# Run the language serverroughly lsp # Start the LSP serverVS Code Extension (Recommended)
For the optimal R development experience, install the Roughly VS Code extension.
- Download the latest
roughly.vsixfrom the GitHub Releases page - Install in VS Code:
Terminal window code --install-extension roughly.vsix - Configure in VS Code settings:
{"roughly.path": "/path/to/roughly"}
Project Configuration
Create a roughly.toml file in your project root to customize Roughly’s behavior:
case = "snake_case" # or "camelCase"spaces = 2For detailed configuration options, see the Configuration documentation.