← All tools

air

Popularity 85 Updated Development & Build

Fast and opinionated formatter for R code

homebrewauto-collected

Installation

Homebrew
brew install air

Install with Homebrew.

Air <img src="docs/images/air.png" align="right" height="160"/

An R formatter and language server, written in Rust.

Installation

Air is usable both as a command line tool and as a language server inside your favorite code editors. If you'd like to use Air within a code editor, we recommend reading our editors guide. If you'd just like to use Air from the command line, you can install Air using our standalone installers.

On macOS and Linux:

curl -LsSf https://github.com/posit-dev/air/releases/latest/download/air-installer.sh | sh

On Windows:

powershell -ExecutionPolicy Bypass -c "irm https://github.com/posit-dev/air/releases/latest/download/air-installer.ps1 | iex"

For a specific version:

curl -LsSf https://github.com/posit-dev/air/releases/download/0.11.0/air-installer.sh | sh
powershell -ExecutionPolicy Bypass -c "irm https://github.com/posit-dev/air/releases/download/0.11.0/air-installer.ps1 | iex"

The installer scripts will automatically add Air to your PATH. The very first time you install Air, for the PATH modifications to be applied you'll need to restart your terminal.

uv

If you use uv, you can install Air via the air-formatter package:

# Global install
uv tool install air-formatter
air format path/to/my/script.R

# Invoke once without installing
uvx --from air-formatter air format path/to/my/script.R

Homebrew

If you're on macOS and are familiar with Homebrew, you can install the air formula with:

brew install air