I have tried to read through the styler customization vignette but it is beyond my grasp. Is there a relatively simple way to modify the default indenting from 2 spaces to 4 spaces? Or, an article that might help me get there?
Luckily, you don't need to dive into serious customization — the default (and currently only existing) style guide, tidyverse_style() has an indent_by parameter.
The part I found tricky:
There are 3 different equivalent ways of calling the top-level styling functions with your own values passed to tidyverse_style() parameters, which allows for shortcuts in some circumstances but I feel like is also a lot to wrap your head around. Adapted from the Customization vignette:
The style parameter is basically just a shortcut that kicks off the construction of the transformers argument, so you can't do style = tidyverse_style(indent_by = 4).
Edited to add: I personally avoid the third syntax, because having that tidyverse_style() parameter sitting there looking like it's a style_text() parameter makes me itchy (I expect future-me-who-no-longer-remembers-how-it-all-works will not approve), but YMMV!