Working with Word documents

read_docx() print(<rdocx>)

Create a 'Word' document object

set_doc_properties()

Set document properties

change_styles()

Replace styles in a 'Word' Document

Word documents information

docx_summary()

get Word content in a data.frame

styles_info()

Read 'Word' styles

doc_properties()

Read document properties

docx_dim()

'Word' page layout

docx_show_chunk()

Show underlying text tag structure

length(<rdocx>)

Number of blocks inside an rdocx object

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

Set cursor in a 'Word' document

docx_bookmarks()

List Word bookmarks

Add content to Word documents

body_add_blocks()

Add a list of blocks into a 'Word' document

body_add_caption()

Add Word caption in a 'Word' document

body_add_img()

Add an image in a 'Word' document

body_add_par()

Add paragraphs of text in a 'Word' document

body_add_table()

Add table in a 'Word' document

body_add_fpar()

Add fpar in a 'Word' document

body_add_toc()

Add table of content in a 'Word' document

body_add_break()

Add a page break in a 'Word' document

body_add_docx()

Add an external docx in a 'Word' document

body_bookmark()

Add bookmark in a 'Word' document

body_add_gg()

Add a 'ggplot' in a 'Word' document

body_add_plot()

Add plot in a 'Word' document

body_end_block_section()

Add any section

body_set_default_section()

Define Default Section

body_end_section_columns()

Add multi columns section

body_end_section_columns_landscape()

Add a landscape multi columns section

body_end_section_continuous()

Add continuous section

body_end_section_landscape()

Add landscape section

body_end_section_portrait()

Add portrait section

Word sections

prop_section()

Section properties

page_mar()

Page margins object

page_size()

Page size object

section_columns()

Section columns

Word simple tables

prop_table()

Table properties

table_colwidths()

Column widths of a table

table_conditional_formatting()

Table conditional formatting

table_layout()

Algorithm for table layout

table_stylenames()

Paragraph styles for columns

table_width()

Preferred width for a table

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

Remove content from Word documents

body_remove()

Remove an element in a 'Word' document

Reading/writing PowerPoint documents

read_pptx()

Create a 'PowerPoint' document object

print(<rpptx>)

Write a 'PowerPoint' file.

Manipulate slides

add_slide()

Add a slide

on_slide()

Change current slide

move_slide()

Move a slide

remove_slide()

Remove a slide

Slide content

ph_with()

Add objects on the current slide

ph_location()

Location for a placeholder from scratch

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_template()

Location for a placeholder based on a template

ph_location_type()

Location of a placeholder based on a type

ph_slidelink()

Slide link to a placeholder

ph_hyperlink()

Hyperlink a placeholder

ph_remove()

Remove a shape

set_notes()

Set notes for current slide

notes_location_label()

Location of a named placeholder for notes

notes_location_type()

Location of a placeholder for notes

Read PowerPoint information

pptx_summary()

PowerPoint content in a data.frame

slide_size()

Slides width and height

length(<rpptx>)

Number of slides

annotate_base()

Placeholder parameters annotation

layout_summary()

Presentation layouts summary

layout_properties()

Slide layout properties

plot_layout_properties()

Slide layout properties plot

slide_summary()

Slide content in a data.frame

color_scheme()

Color scheme of a PowerPoint file

media_extract()

Extract media from a document object

as.matrix(<rpptx>)

PowerPoint table to matrix

Content formatting

Define formatted paragraphs or parts of paragraphs, such as text, calculated Word fields, sets of paragraphs, etc.

fpar() update(<fpar>)

Formatted paragraph

block_caption()

Caption block

block_list()

List of blocks

block_pour_docx()

External Word document placeholder

block_section()

Section for 'Word'

block_table()

Table block

block_toc()

Table of content for 'Word'

unordered_list()

Unordered list

plot_instr()

Wrap plot instructions for png plotting in Powerpoint or Word

ftext()

Formatted chunk of text

run_autonum()

Auto number

run_bookmark()

Bookmark for 'Word'

run_columnbreak()

Column break for 'Word'

run_footnote()

Footnote for 'Word'

run_footnoteref()

Word footnote reference

run_linebreak()

Page break for 'Word'

run_pagebreak()

Page break for 'Word'

run_reference()

Cross reference

run_word_field() run_seqfield()

'Word' computed field

set_autonum_bookmark()

Update bookmark of an autonumber run

external_img()

External image

hyperlink_ftext()

Formatted chunk of text with hyperlink

empty_content()

Empty block for 'PowerPoint'

sp_line() print(<sp_line>) update(<sp_line>)

Line properties

sp_lineend() print(<sp_lineend>) update(<sp_lineend>)

Line end properties

Formatting properties

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

Text formatting properties

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

Excel

read_xlsx() length(<rxlsx>) print(<rxlsx>)

Create an 'Excel' document object

add_sheet()

Add a sheet

sheet_select()

Select sheet

Misc

officer

Manipulate Microsoft Word and PowerPoint Documents with 'officer'

read_xlsx() length(<rxlsx>) print(<rxlsx>)

Create an 'Excel' document object

add_sheet()

Add a sheet

sheet_select()

Select sheet

shortcuts

shortcuts for formatting properties

sanitize_images()

Remove unused media from a document

slip_in_seqfield() slip_in_column_break() slip_in_xml() slip_in_text()

Defunct Functions in Package officer

slip_in_footnote()

append a footnote