Skip to contents

Add table to Slides

Usage

# S3 method for class 'flextable'
add_to_slides(
  object,
  presentation_id,
  on = NULL,
  object_id = new_id("table"),
  overwrite = FALSE,
  ...
)

Arguments

object

A table object (flextable)

presentation_id

The id from the Slides presentation

on

The id or number of the slide to add to

object_id

A unique id for the table

overwrite

If TRUE and an object with object_id exists it will deleted and replaced.

...

Not used in this method

Value

A presentation object after updating

Examples

if (FALSE) { # interactive()
# \donttest{
s <- choose_slides()
library(flextable)
ft <- flextable(iris[1:5, ])
ft <- theme_box(ft)
ft <- color(ft, i = 1:3, j = 1:2, "pink", part = "body")
ft <- autofit(ft)
add_to_slides(ft, s, on = 1)
# }
}