n rule:</p>
<pre class="styler"><code># Before
a &lt;- function() {
    ### not to be indented
    # indent normally
    33
    }</code></pre>
<pre><code># After style_text(..., reindention = list(regex_pattern = &quot;^###&quot;, indention = 0, comments_only = TRUE))
a &lt;- function() {
### not to be indented
  # indent normally
  33
}</code></pre>
<p>These are options that allow flexible reformatting. You can even go further, as described in the <a href="http://styler.r-lib.org/articles/customizing_style