title: How to create a blocked hanging indent report format in R (preferably using gt)
body: <p>I want to report data in R using the display format like an MS Access block grouped report, that is, where the data that is duplicated on the subsequent lines of a group is omitted.</p>
  <pre class="lang-r prettyprint-override"><code>library(gt)
  library(tidyverse)
  
  
  df = tribble( ~a, ~b, ~c,
               'a', 'b', 'c',
               'a', 'b', 'd',
               'a', 'b', 'e',
               '1', 'b', 'c',
               '1', 'b', 'd',
               '1', 'b', 'e')
  
  
  </code></pre>
  <p>Desired output here (if you can imagine the red to be cut out)</p>
  <p><a href="https://i.stack.imgur.com/WE7yy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WE7yy.png" alt="enter image description here" /></a></p>
  <p>I tried 2 different things.  The plain gt() call comes close, but I want to get rid of the duplicated values, e.g. the values a/b in rows 2-3 and 1/b in rows 5-6.s</p>
  <pre><code>
  df %&gt;% gt()
  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/DyhTp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DyhTp.png" alt="plain gt() output" /></a></p>
  <p>First, I grouped by 2 columns, but then I lost my column level formatting, and descriptive headers.</p>
  <pre><code>
  df %&gt;%
    group_by( a, b) %&gt;%
    gt()
  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/NpEzy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NpEzy.png" alt="grouped gt output" /></a></p>