Description
@awilnoaa and I noticed that {styler} does not indent function argument names with a single indent (two spaces), it uses two indents instead (see comments here). Air formats the code correctly according to the {tidyverse} style guide.
We could consider setting up Air in VS Code by modifying .vscode/settings.json following the instructions here. This would allow automatic formatting on the fly. We need to use the command Air: Initialize Workspace Folder to format all R files at once. With this setup, we could remove the instructions for using styler::style_pkg() from the codebase (e.g., CONTRIBUTING.md).
Description
@awilnoaa and I noticed that {styler} does not indent function argument names with a single indent (two spaces), it uses two indents instead (see comments here). Air formats the code correctly according to the {tidyverse} style guide.
We could consider setting up Air in VS Code by modifying
.vscode/settings.jsonfollowing the instructions here. This would allow automatic formatting on the fly. We need to use the commandAir: Initialize Workspace Folderto format all R files at once. With this setup, we could remove the instructions for usingstyler::style_pkg()from the codebase (e.g., CONTRIBUTING.md).