title: R: Insert table in template table using ReporteRs
body: <p>I am in the process of making a dashboard. Basically, I am pulling out selected information from a database that I then want to display in a word template. I set up the template with a table (2 rows, 3 columns). In each cell I put a bookmark. Then, using the R package ReporteRs I put specific information from R into a cell within the template based on the bookmark.</p>
  
  <p>ISSUE: I cant seem to insert tables into a cell of the template.</p>
  
  <p>Tried: I thought it might be due to size of the table (as i experienced that size was the issue when inserting figures), but this is not the case.</p>
  
  <p>Below is an example with the error. In order to run this you have to create a Word document with a table with a bookmark in one of the cells called 'test'.</p>
  
  <pre><code>doc = docx( title = "Dashboard",template="H:\\test.docx") 
  myt &lt;-FlexTable(cars[c(1:10),])
  doc &lt;-addFlexTable(doc,myt,bookmark="test")
  writeDoc(doc, "H:\\testresult.docx")
  </code></pre>
  
  <p>If you then create a bookmark outside of the table and assign the table to the new bookmark, it seems to work.</p>
  
  <p>Does anyone know how to insert a table (data frame as a table) into any cell of my template?</p>