Air - A blazingly fast R code formatter
summary
Air is an R code formatter implemented in Rust that formats big files nearly instantly — about 20 ms for a 1k‑line file and ~200 ms to format all of dplyr’s ~150 R files. It hooks into IDEs via the Language Server Protocol (Positron, RStudio, VS Code, Neovim) and provides a GitHub action that auto-suggests fixes. Features include a strict on/off style, persistent line breaks, magic skip directives, and a coming tabular mode.
AI-written summary · about
chapters (14)
- 0:00Formatting R code matters
- 1:47Air formatter for R
- 2:50Setting up Air in Positron
- 4:19Using Air daily
- 5:44Air performance benchmarks
- 6:50Tidyverse and rlib adoption
- 7:36Reducing collaborative friction
- 8:38GitHub action for contributors
- 9:44Strict configuration benefits
- 11:12Controlling code layout with Air
- 12:40Magic commands and skip directives
- 13:49Future tabular directives
- 14:50Air IDE compatibility
- 15:57Q&A: Switching from styler
related talks
11mIntroducing Standard Clojure Style: no fuss code formatting
31mMake your own code formatter in Swift
31mInside AGLint v4
41mFormat Your Elixir Code Now
28mFixit linter+AI coding
01h 03mFormatting F# Code, There and Back Again
27mRules_lint: Formatting and Linting All Languages
28mAutomating the Automator
