Air

Posit Software, PBC · Posit.Air

R formatter and language server

An R formatter and language server, written in Rust.

winget install --id Posit.Air --exact --source winget

Latest 0.9.0

Release Notes

Release Notes

  • New --stdin-file-path to read from stdin. Read more about this on the website (#471).
  • Air's behavior relating to directly supplied files and the exclude / default-exclude options has changed to be safer by default. Previously, air format cpp11.R would format cpp11.R, even though it was part of the set of default-excludes, because we assumed that a direct request from a user like this could override these rules. However, tools such as pre-commit or IDEs that format via stdin will blindly call air format on any file that changes and have no knowledge of whether that file should be excluded or not. For this reason, we now exclude files that match exclude or default-exclude patterns even if they are directly supplied on the command line. Similarly, air format my.qmd no longer attempts to format my.qmd. This file is not excluded by exclude or default-exclude, but is also not included by our internal set of default-includes, which currently only accept .R and .r files. Rather than blindly trying to format this directly supplied file, Air now ignores it (#476).
  • New --force flag to bypass all exclusion and inclusion rules and force a file or folder to be formatted. This flag applies recursively, meaning that all files within a forced folder will also be forcibly formatted, regardless of file type. This flag should rarely be needed, but serves as an escape hatch for cases like air format r-code.txt --force, which is no longer automatically formatted by Air as of this release due to the change mentioned above (#478).
  • New air generate-shell-completion hidden command that emits a script to stdout that generates shell completions. Supports bash, zsh, fish, powershell, and elvish (#477, @salim-b). For zsh, run the following to add to your .zshrc: echo 'eval "$(air generate-shell-completion zsh)"' >> ~/.zshrc For powershell, run the following to add to your profile: if (!(Test-Path -Path $PROFILE)) { New-Item -ItemType File -Path $PROFILE -Force } Add-Content -Path $PROFILE -Value '(& air generate-shell-completion powershell) | Out-String | Invoke-Expression' Then restart your shell and type air to see completions.

Installer type: zip

Architecture Scope Download SHA256
x64 Download 29260D3FDE911663E7221A99336A892EF3A1775D1C895021D0A4654DCEBC2FE0
arm64 Download 8409957F6DEC699852635EBF1F2139D55B35853B291A94BD510E90F8FA5CFEB7

Details

Homepage
https://github.com/posit-dev/air
License
MIT
Publisher
Posit Software, PBC
Support
https://github.com/posit-dev/air/issues
Copyright
Copyright (c) 2026 Posit Software, PBC
Moniker
air

Tags

formatterlanguage-serverlsprrstats

Older versions (3)

0.5.0
Architecture Scope Download SHA256
x64 Download 08B1B72527F7F249BCF203638596FFF2FB6C9DF3D3A4E5E1A0719F25D3B229B5
arm64 Download 6F563A8D97E29ED810DF03D06F24AD916FF048EA96AE4DE1BA779170AFCA146C
0.4.1
Architecture Scope Download SHA256
x64 Download 79107974B48FF4CC5863A351B1101257828A6743DFB1A2F364092C740CC684FA
arm64 Download C8113587B5FAECD3A4FD01251B6B071606860CDE64D618B651523D168F733016
0.4.0
Architecture Scope Download SHA256
x64 Download 77ABDCAB36F2A1D0CA52C4763BB43C209BCDBDB7C3D919D6BC8C675887888E33
arm64 Download 3C66B4D551924B9E149E663C4E0DBF18CEA7BBA2E0BA6CC5E253065DEBEB83FB