title: indented unordered list to nested list()
body: <p>I've got a log file that looks as follows:</p>
  
  <pre><code>Data:
   +datadir=/data/2017-11-22
   +Nusers=5292
  Parameters:
   +outdir=/data/2017-11-22/out
   +K=20
   +IC=179
   +ICgroups=3
     -group 1: 1-1
      ICeffects: 1-5
     -group 2: 2-173
      ICeffects: 6-10
     -group 3: 175-179
      ICeffects: 11-15
  </code></pre>
  
  <p>I would like to parse this logfile into a nested list using R so that the result will look like this:</p>
  
  <pre><code>result &lt;- list(Data = list(datadir = '/data/2017-11-22',
                             Nusers = 5292),
                 Parameters = list(outdir = '/data/2017-11-22/out',
                                   K = 20,
                                   IC = 179,
                                   ICgroups = list(list('group 1' = '1-1',
                                                        ICeffects = '1-5'),
                                                        list('group 2' = '2-173',
                                                        ICeffects = '6-10'),
                                                        list('group 1' = '175-179',
                                                        ICeffects = '11-15'))))
  </code></pre>
  
  <p>Is there a not-extremely-painful way of doing this?</p>