Given a provided table style, add it to the tableStyle file in the document. this makes it available to tables that get added to the PowerPoint as a table style option
add_table_style(
pptx,
table_style,
verbose = getOption("powerup.verbose", default = FALSE),
error_call = caller_env()
)A PowerPoint wrapped in a <pptx_container> object. see load_pptx()
an xml_node that defines a tblStyle. Created by new_table_style().
if TRUE, some information is cli::cli_inform()ed along the way
The execution environment of a currently
running function, e.g. caller_env(). The function will be
mentioned in error messages as the source of the error. See the
call argument of abort() for more information.
a pptx_container object with the new table style added
pptx <- example_pptx()
table_style <- new_table_style("My New Style")
pptx <- add_table_style(pptx, table_style) #'