Use styler

{styler} 📦 by Lorenz Walthert helps quickly apply styles

  • Install with install.packages("styler")
  • Use via RStudio’s command palette
    • Cmd/Ctrl + Shift + P to open pallette
    • Type “styler” to see all styler shortcuts