add_2flextables: Add two flextables into a document object

View source: R/add_2ggplots.R

add_2flextablesR Documentation

Add two flextables into a document object

Description

Add two flextables into a document object

Usage

add_2flextables(mydoc, ft1, ft2, echo = FALSE, width = 3, code = "")

Arguments

mydoc

A document object

ft1

The first flextable

ft2

The second flextable

echo

whether or not display R code

width

plot width in inches

code

R code string

Value

a document object

Examples

## Not run: 
require(rrtable)
require(officer)
require(magrittr)
title="Two Tables"
ft1=df2flextable(head(iris[1:4]))
ft2=df2flextable(tail(iris[1:4]))
doc=read_docx()
doc %>% add_text(title=title) %>%
        add_2flextables(ft1,ft2)
doc=read_pptx()
doc %>% add_text(title=title) %>%
        add_2flextables(ft1,ft2)

## End(Not run)

rrtable documentation built on April 5, 2022, 9:08 a.m.