Working with Word documents

read_docx() print(<rdocx>) length(<rdocx>)

open a connection to a 'Word' file

docx_summary()

get Word content in a tidy format

styles_info()

read Word styles

doc_properties()

read document properties

set_doc_properties()

set document properties

docx_dim()

Word page layout

Navigate into Word documents

cursor_begin() cursor_bookmark() cursor_end() cursor_reach() cursor_forward() cursor_backward()

set cursor in an rdocx object

docx_bookmarks()

List Word bookmarks

Add content to Word documents

body_add_img()

add image

body_add_par()

add paragraph of text

body_add_table()

add table

body_add_blocks()

add a list of blocks into a document

body_add_fpar()

add fpar

body_add_toc()

add table of content

body_add_break()

add page break

body_end_section() body_default_section()

add section

body_add_docx()

insert an external docx

body_bookmark()

add bookmark

body_add_gg()

add ggplot

slip_in_img()

append an image

slip_in_text()

append text

slip_in_seqfield()

append seq field

body_end_section_continuous() body_end_section_landscape() body_end_section_portrait() body_end_section_columns() body_end_section_columns_landscape()

sections

break_column_before() slip_in_column_break()

add a column break

slip_in_footnote()

append a footnote

Replace content in Word documents

body_replace_text_at_bkm() body_replace_img_at_bkm() headers_replace_text_at_bkm() headers_replace_img_at_bkm() footers_replace_text_at_bkm() footers_replace_img_at_bkm()

replace text at a bookmark location

body_replace_all_text() headers_replace_all_text() footers_replace_all_text()

Replace text anywhere in the document, or at a cursor

Remove content from Word documents

body_remove()

remove an element

Working with PowerPoint documents

read_pptx() print(<rpptx>) length(<rpptx>) slide_size()

open a connexion to a 'PowerPoint' file

pptx_summary()

get PowerPoint content in a tidy format

annotate_base()

annotate PowerPoint base document

add_slide()

add a slide

on_slide()

change current slide

layout_summary()

presentation layouts summary

layout_properties()

slide layout properties

slide_summary()

get PowerPoint slide content in a tidy format

move_slide()

move a slide

color_scheme()

color scheme

Add content to PowerPoint documents

ph_with()

add object into a new shape

ph_location()

create a location for a placeholder

ph_location_fullsize()

location of a full size element

ph_location_label()

location of a named placeholder

ph_location_left()

location of a left body element

ph_location_right()

location of a right body element

ph_location_type()

location of a placeholder type

ph_empty() ph_empty_at()

add a new empty shape

ph_add_text()

append text

ph_add_par()

append paragraph

ph_add_fpar()

append fpar

ph_slidelink()

slide link to a placeholder

ph_hyperlink()

hyperlink a placeholder

Remove content from PowerPoint documents

remove_slide()

remove a slide

ph_remove()

remove shape

Create formatted paragraphs

fpar() update(<fpar>) as.data.frame(<fpar>) format(<fpar>)

concatenate formatted text

block_list()

list of blocks

ftext() format(<ftext>) print(<ftext>)

formatted text

external_img() dim(<external_img>) as.data.frame(<external_img>) format(<external_img>)

external image

Formatting properties

fp_text() format(<fp_text>) print(<fp_text>) update(<fp_text>)

Text formatting properties

fp_par() dim(<fp_par>) print(<fp_par>) update(<fp_par>)

Paragraph formatting properties

fp_border() update(<fp_border>)

border properties object

fp_cell() format(<fp_cell>) print(<fp_cell>) update(<fp_cell>)

Cell formatting properties