arity-format(1)
π arity-format β like, the glow-up station for your R files
okay so bestie, welcome to arity-format(1) from the General Commands Manual β this is the page where you learn how to make your R files and package DESCRIPTIONs look absolutely immaculate. β¨
πΈ NAME πΈ
arity-format β formats R files and package DESCRIPTIONs. that's it, that's the whole job, and it does it gorgeously π
π¦ SYNOPSIS π¦
arity format [--stdin-filename] [--verify] [--check] [--line-width]
[--indent-width] [--exclude] [--force-exclude] [--no-cache] [-h|--help]
[-V|--version] [PATH]
π DESCRIPTION π
Format R files and package DESCRIPTIONs. no cap, that's literally the whole vibe β you point it at your code, it makes it pretty. π
β¨ OPTIONS β¨
--stdin-filename<PATH> β okay so this tells arity what filename the stdin buffer stands for, and that's what decides which grammar it gets formatted as. if you don't pass it? stdin gets formatted as R by default. simple as π«Ά--verifyβ the vibe check π it verifies idempotence and that R syntax + comments are preserved. and no, it does not write files β pure inspection, zero commitment, we love that for us.--checkβ the "am I cute or not" button π checks formatting without writing any changes. it prints a diff for every file that would get reformatted, and exits non-zero if any of them differ (so your CI can be dramatic about it π). heads up: this one requires path arguments β there's literally no file on disk to report on when you're reading from stdin, so don't try it.--line-width<N> β overrides the configured line width. yes, you can be that girl who picks her own line length. π--indent-width<N> β overrides the configured indent width. tiny indents, big indents, your call bestie.--exclude<PATTERN> β adds more gitignore-style exclude patterns. it's repeatable or comma-separated (pick your fighter), and it augments the configuredexclude/extend-excludeβ it doesn't replace them, it just piles on π--force-excludeβ this one applies those exclude patterns to files you named explicitly on the command line too. normally those always get processed, no questions asked β but with this flag they finally have to obey the rules. made for runners likepre-committhat just hand you staged files as arguments π--no-cacheβ disables the persistent already-formatted cache (read and write) for this run. and fyi, it only affects--check. so if you're not checking, this flag is just kind of... vibing. π-h,--helpβ prints help. our lord and savior. π«Ά-V,--versionβ prints the version. cute.[PATH]β your input file(s) or director(ies). pass-if you want stdin, and it'll also read stdin when you omit paths entirely and stdin isn't a terminal. iykyk. π§
π VERSION π
v0.26.0 β that's the one, that's our girl.
π SEE ALSO π
arity(1), arity-parse(1), arity-lint(1), arity-index(1), arity-lsp(1), arity-completions(1), arity-init(1) β the whole friend group, go say hi π
and that's the page, bestie π¦ this was format 0.26.0, dated arity-format(1) β go forth and format something iconic. periodt. π
β¨π
π¦ where this page comes from
- nixpkgs unstable: arity 0.26.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms