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.13.0·November 2, 2026

Release Notes
  • Air no longer utilizes tree-sitter-r for parsing R files. Instead, Air now ships with a completely custom R parser written entirely in Rust. This comes with a number of benefits!
    • Air is now roughly 2x faster. Formatting all of dplyr has gone from 300ms to 150ms on an M2 Mac. The actual parsing stage is around 7x faster.
    • Air now emits precise error messages when a file fails to parse due to syntax errors.
    • Air no longer has C in its dependency chain. This means that we'll be able to add WASM support for Air much easier now.
    • If you are building a Rust based project that needs to parse R files, we encourage you to use our air_r_parser crate (pinned to a git SHA since we haven't put it on crates.io yet).
  • We've fixed a number of minor issues through the new parser:
    • Air more accurately accepts certain syntax:
      • r"|...|", which are raw strings using the undocumented | delimiter
      • %a\b% where previously the \ failed to parse
      • for loops with ... or ..1 as the loop variable, like for (... in x)
      • Unary ? and ~ now have correct precedence when mixed with their binary counterparts (#565).
    • Air more accurately rejects certain syntax errors:
      • 1 2, which are two expressions side by side without a semicolon or newline
      • Stray top-level ;
      • pkg:: without a right-hand side
      • x$1 where the right-hand side is not an identifier
      • = assignment where R doesn't allow it, i.e. in argument values, parameter defaults, if and while conditions, and for loop sequences (#563)
  • Air now emits much improved diagnostics at the command line. In particular, syntax errors in both R files and your air.toml are reported with a code frame that shows the exact location of the issue (#558):

    air format . R/arrange.R:137:13 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✖ Expected a loop sequence but instead found ')'. 135 │ names(cols) <- as.character(seq_dots) 136 │ 137 │ for (i in ) { │ ^ 138 │ name <- vec_paste0("..", i) 139 │ dot <- dots[[i]] R/case-when.R:301:5 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✖ Expected , but instead found values. 299 │ .size <- case_when_size_common( 300 │ conditions = conditions 301 │ values = values, │ ^^^^^^ 302 │ size = .size 303 │ ) format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✖ Found 2 errors. And for an air.toml issue: air format . --check air.toml:2:15 configuration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✖ unknown variant aut, expected one of auto, lf, crlf, native 1 │ [format] 2 │ line-ending = "aut" │ ^^^^^ format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✖ Found 1 error.

  • Air no longer emits colored output when stderr is not a terminal, such as when stderr is redirected to a file.

Installer type: zip

x64—5A72240C5899440BC57FDE421F0444840365EBAD9F55E4F971FC73EE2281F828
arm64—1CF749A26939E2EE5F0401596281092BC576E0D731B96A8BD32E5EFDF5E23C19

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 (7)

0.12.0
x64—D3EDBD1DD005A9E60D1A65AE94BFC9A71491AA0144969DAC80E8578155072796
arm64—CAEE86DA071A095E142AACE5C4BD29A63A8EAC5749CFB44E335B2EC5BC064D54
0.11.0
x64—8B111F2400E7B9AAABBC9448424381C3969F03370D59124C4FBCB3D766DFC104
arm64—5F3E390502E5A086BBB46AE480CFDC0DE9D64E8F5CB0E419C91FF5BA04738648
0.10.0
x64—73DAE3FB0442FB645DF44073B8BA03C9145F4307FCCAB38225DDE95DE4D9C860
arm64—1A33165CE09EF82FA4861591E46AA98294AAA995CF712ACF63115E764A24BE0E
0.9.0
x64—29260D3FDE911663E7221A99336A892EF3A1775D1C895021D0A4654DCEBC2FE0
arm64—8409957F6DEC699852635EBF1F2139D55B35853B291A94BD510E90F8FA5CFEB7
0.5.0
x64—08B1B72527F7F249BCF203638596FFF2FB6C9DF3D3A4E5E1A0719F25D3B229B5
arm64—6F563A8D97E29ED810DF03D06F24AD916FF048EA96AE4DE1BA779170AFCA146C
0.4.1
x64—79107974B48FF4CC5863A351B1101257828A6743DFB1A2F364092C740CC684FA
arm64—C8113587B5FAECD3A4FD01251B6B071606860CDE64D618B651523D168F733016
0.4.0
x64—77ABDCAB36F2A1D0CA52C4763BB43C209BCDBDB7C3D919D6BC8C675887888E33
arm64—3C66B4D551924B9E149E663C4E0DBF18CEA7BBA2E0BA6CC5E253065DEBEB83FB