R/reporter.addTable.R

##' @export
reporter.addTable <- function(doc,flextable,title,landscape = FALSE){
  if (landscape == TRUE){
    doc %>>%
      addSection(landscape = TRUE) ->
      doc
  }

  doc %>>%
    addParagraph(
      title,
      stylename = quicktable[['stylename']]
    ) %>>%
    addFlexTable(
      flextable
    ) %>>%
    addParagraph(
      ""
    ) ->
    doc

  return(doc)
}
jcizel/doctemplates documentation built on May 18, 2019, 10:24 p.m.