officer0.6.7 package

Manipulation of Microsoft Word and PowerPoint Documents

body_add_caption

Add Word caption in a 'Word' document

body_add_table

Add table in a 'Word' document

body_add_toc

Add table of content in a 'Word' document

body_add_xml

Add an xml string as document element

body_add

Add content into a Word document

body_bookmark

Add bookmark in a 'Word' document

body_comment

Add comment in a 'Word' document

body_end_block_section

Add any section

body_end_section_columns_landscape

Add a landscape multi columns section

body_end_section_columns

Add multi columns section

body_end_section_continuous

Add continuous section

body_end_section_landscape

Add landscape section

body_end_section_portrait

Add portrait section

body_remove

Remove an element in a 'Word' document

body_replace_all_text

Replace text anywhere in the document

cursor

Set cursor in a 'Word' document

doc_properties

Read document properties

docx_body_relationship

Body xml document

docx_body_xml

Body xml document

docx_bookmarks

List Word bookmarks

block_section

Section for 'Word'

block_table

Table block

block_toc

Table of content for 'Word'

body_add_blocks

Add a list of blocks into a 'Word' document

body_add_break

Add a page break in a 'Word' document

external_img

External image

fortify_location

Eval a location on the current slide

fp_border

Border properties object

fp_cell

Cell formatting properties

fp_par

Paragraph formatting properties

fp_tab

Tabulation mark properties object

fp_tabs

Tabs properties object

layout_dedupe_ph_labels

Detect and handle duplicate placeholder labels

fp_text

Text formatting properties

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_location

Location for a placeholder from scratch

docx_comments

Get comments in a Word document as a data.frame

docx_current_block_xml

xml element on which cursor is

docx_dim

'Word' page layout

docx_reference_img

add images into an rdocx object

docx_set_character_style

Add character style in a Word document

docx_set_paragraph_style

Add or replace paragraph style in a Word document

docx_show_chunk

Show underlying text tag structure

docx_summary

Get Word content in a data.frame

empty_content

Empty block for 'PowerPoint'

ph_remove

Remove a shape

ph_slidelink

Slide link to a placeholder

ph_with

Add objects on the current slide

plot_instr

Wrap plot instructions for png plotting in Powerpoint or Word

read_docx

Create a 'Word' document object

read_pptx

Create a 'PowerPoint' document object

read_xlsx

Create an 'Excel' document object

remove_slide

Remove a slide

run_word_field

'Word' computed field

run_wordtext

Word chunk of text with a style

sanitize_images

Remove unused media from a document

section_columns

Section columns

set_autonum_bookmark

Update bookmark of an autonumber run

set_doc_properties

Set document properties

set_notes

Set notes for current slide

shape_properties_tags

pptx tags for visual and non visual properties

sheet_select

Select sheet

shortcuts

shortcuts for formatting properties

slide_size

Slides width and height

slide_summary

Slide content in a data.frame

sp_line

Line properties

sp_lineend

Line end properties

str_encode_to_rtf

Encode UTF8 string to RTF

styles_info

Read 'Word' styles

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

to_html

Convert officer objects to HTML

to_pml

Convert officer objects to PresentationML

to_rtf

Convert officer objects to RTF

to_wml

Convert officer objects to WordprocessingML

unordered_list

Unordered list

unpack_folder

Extract files from a zip file

uuid_generate

generates unique identifiers

wml_link_images

transform an xml string with images references

add_sheet

Add a sheet

add_slide

Add a slide

on_slide

Change current slide

opts_current_table

Table options in a 'knitr' context

annotate_base

Placeholder parameters annotation

as.matrix.rpptx

PowerPoint table to matrix

block_caption

Caption block

block_list

List of blocks

block_pour_docx

External Word document placeholder

body_add_plot

Add plot in a 'Word' document

body_add_docx

Add an external docx in a 'Word' document

body_add_fpar

Add fpar in a 'Word' document

body_add_gg

Add a 'ggplot' 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

officer-defunct

Defunct Functions in Package officer

body_replace_gg_at_bkm

Add plots at bookmark location in a 'Word' document

body_replace_text_at_bkm

Replace text at a bookmark location

body_set_default_section

Define Default Section

change_styles

Replace styles in a 'Word' Document

color_scheme

Color scheme of a PowerPoint file

pack_folder

compress a folder

fpar

Formatted paragraph

ftext

Formatted chunk of text

get_layout

Layout selection helper

get_reference_value

Get the document being used as a template

hyperlink_ftext

Formatted chunk of text with hyperlink

image_to_base64

Images to base64

officer

Manipulate Microsoft Word and PowerPoint Documents with 'officer'

layout_properties

Slide layout properties

layout_rename_ph_labels

Change ph labels in a layout

layout_summary

Presentation layouts summary

length.rdocx

Number of blocks inside an rdocx object

length.rpptx

Number of slides

media_extract

Extract media from a document object

move_slide

Move a slide

notes_location_label

Location of a named placeholder for notes

notes_location_type

Location of a placeholder for notes

officer_url_encode

officer url encoder

page_mar

Page margins object

page_size

Page size object

ph_hyperlink

Hyperlink a placeholder

ph_location_fullsize

Location of a full size element

ph_location_id

Location of a placeholder based on its id

plot_layout_properties

Slide layout properties plot

pptx_summary

PowerPoint content in a data.frame

print.rpptx

Write a 'PowerPoint' file.

print.rtf

Write an 'RTF' document to a file

prop_section

Section properties

prop_table

Table properties

rtf_add

Add content into an RTF document

rtf_doc

Create an RTF document object

run_autonum

Auto number

run_bookmark

Bookmark for 'Word'

run_columnbreak

Column break for 'Word'

run_tab

Tab for 'Word'

run_comment

Comment 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

Access and manipulate 'Microsoft Word', 'RTF' and 'Microsoft PowerPoint' documents from R. The package focuses on tabular and graphical reporting from R; it also provides two functions that let users get document content into data objects. A set of functions lets add and remove images, tables and paragraphs of text in new or existing documents. The package does not require any installation of Microsoft products to be able to write Microsoft files.

  • Maintainer: David Gohel
  • License: MIT + file LICENSE
  • Last published: 2024-10-09