title: tableGrob formatting
body: <p>I have the following table in R (below in csv format). Since there are many of these and I need them formatted, I tried to use tableGrob to save a lot of time, yet I need the output in a very specific format, including the Calibri font (also below).</p>
  
  <p>"2015\nabril","2016\nabril","2017\nmarzo","2017\nabril"</p>
  
  <p>"Pedidos",-23.3,-13.8,-26,-39</p>
  
  <p>"Existencias",7.6,1.2,5.3,10.5</p>
  
  <p>"Expectativas",30.7,32.7,28.7,24</p>
  
  <p>"ICI",-0.1,5.9,-0.9,-8.5</p>
  
  <p>"ICI Desest*",0.4,5.7,-3.2,-6.9</p>
  
  <p><a href="https://i.stack.imgur.com/UHpC2.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UHpC2.jpg" alt="enter image description here"></a></p>
  
  <p>However, every time I try to edit the theme and print the table I get this error</p>
  
  <pre><code>library(gridExtra)
  t1 &lt;- ttheme_default(core=list(
         fg_params=list(fontface=c(rep("plain", 4), "bold.italic")),
         bg_params = list(fill=c(rep(c("grey95", "grey90"),
                                 length.out=4), "#6BAED6"),
                      alpha = rep(c(1,0.5), each=5))
  ))
  
  t  &lt;- tableGrob(tabla_fin)
  grid.table(t, theme = t1)
  </code></pre>
  
  <blockquote>
    <p>Error in array(x, c(length(x), 1L), if (!is.null(names(x)))
    list(names(x),  :    dims [product 60] do not match the length of
    object [12]</p>
  </blockquote>
  
  <p>I'd appreciate any help. Thank you!</p>