title: making a complex yaml from R
body: <p>I am trying to make yaml format file from R. I know there is a package for such a job, but its example is so simple and my object is a bit more tricky !!</p>
  
  <p>so I would like to make something like the following but I don't know how should I shape it as R object (dataframe?!):</p>
  
  <pre><code>tree:
    format: newick
    translate: ./My_example-1.translation
    file: ./Xtol_example-1.tree
  tracks:
    - class: colorstrip
      source: ./My_example-1.catdomain
  
      rel_height: 0.6
      title: Catalytic domain
    - class: colorstrip
      source: ./My_example-1.kingdom
      rel_height: 0.6
      title: Itsname
    - class: colorstrip
      source: ./My_example-1.temp
  </code></pre>