Skip to content

officer

0.7.7Package record

Manipulation of Microsoft Word and PowerPoint Documents

83packages dependsuggested by 49
1.4Mdownloads / year
87.8%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.7.7

Features

  • body_add_gg() gains an alt_text argument (as ph_with() for ggplot

objects); if empty, the alt text defined with ggplot2::labs(alt = ...) is

used. body_add_img() gains an alt argument, passed to external_img()

(discussion #733).

  • docx_summary() gains a para_id column containing the unique paragraph

id, allowing to join its results with those of docx_comments()

(discussion #732).

Issues

  • headers and footers no longer disappear from even pages when a document is

opened with read_docx() and saved again. The "different odd and even pages"

option of the document was always switched on, even when it was off.

Show all changes in 0.7.7Hide the rest of the changes in 0.7.7
  • a Word document created with officer and containing headers or footers can

now be opened again with read_docx() and saved without error.

  • with print(copy_header_refs = TRUE, copy_footer_refs = TRUE), headers and

footers of the default section are now added to the other sections without

replacing the ones a section already defines, and Word opens the result

without complaint.

  • adding a list with block_list_items() no longer removes the numbering of

the numbered headings of a template.

  • lists added with block_list_items() in a footnote, a comment, a header or

a footer are now displayed correctly by Word.

  • images such as previews of embedded objects (e.g. EMF) are no longer lost

when saving a document (#730).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 6.8 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-22
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK13 OK2026-06-09
Show 2 earlier changesHide 2 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-07
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.7.7
READMEYes · 879 wordsVignettesNoNEWSYes · 100% structured · mentions 0.7.7Citation fileNoWebsiteYes · pkgdown
Help pages
177 (33 internal)includes a package overview page
Examples that run
100%152 run in a plain check (1 of them under a condition)
Exported functions with examples
87%
Documented parameters
91%
Return-value docs
19%
Help pages citing references
0%

Downloads

1.4M
CRAN downloads in the past year
Rank #345 · ~3.9K/day · ~119.2K/mo
Daily download trend is not available in this view yet.
99.3K30 days
284.1K90 days
1.4M1 year
Compare downloads with other packages →
Also on13.3K r2u10 autocran22.8K conda_forge322 c2d4u

Repository

699Stars
119Forks
11Open issues
0Open PRs
3Releases
1,286Commits
41Commit identities
ms-office-documentsrpowerpointwordcran
1,286 commits · Last activity 2026-10-14 · +0.6% stars, 30d · Discussions: 46 posts
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
18
Median days to close, 50 most recently updated closed PRs
not measured

Stars over time

2025-10-19 · 6572026-10-15 · 699
PracticesBeta

11 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/davidgohel/officer on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows

Governance and community (2)
Code of conductIssue templates
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-14 · The repository has a site deploy workflow

pkgdown site last built 2026-10-14

Coverage (1)
Coverage reporting
Show all practicesHide 2 practices
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
21 external dependencies (excludes base and recommended)

Installing officer adds 31 packages (23 with compiled code, 22 MB of source tarballs). Heaviest: stringi 11 MB, openssl 1.1 MB, jsonlite 1.0 MB.

Depends (0)
none
Imports (13)
clidplyrgraphicsgrDevicesopensslR6raggstatstidyrutilsuuidxml2zip
LinkingTo (0)
none
Enhances (0)
none

People & History

People (17)
Author, Maintainer since 0.1.0 (2017)
Author · added in 0.6.7
Author · added in 0.4.3
Contributor · added in 0.4.2
set speaker notes for .pptx documents
Contributor · added in 0.2.0
update vignettes
Contributor · added in 0.4.2
function as.matrix.rpptx
Contributor · added in 0.6.7
Contributor · added in 0.2.0
function body_replace_all_text
Contributor · added in 0.2.2
function annotate_base
Contributor · added in 0.5.1
Contributor · added in 0.7.3
vectorization of remove_slide
Show 5 more contributorsHide 5 contributors
Contributor · added in 0.4.3
fields functionality in ppt
Contributor · added in 0.3.6
google doc compatibility
Contributor · added in 0.2.0
several documentation fixes
Contributor · added in 0.6.9
Contributor · added in 0.3.3
fixes xml structures
Copyright holder · added in 0.5.1
Releases (59)

Pick two releases to compare their code metrics.

  • 0.7.7Latest
    record
    2026-10-14 · current release · diff ↗ ·
    listed once in CRAN's queue
    Seen in one reading of CRAN's incoming queue, at 2026-10-14 19:53 UTC, so it stayed less than the time between readings.
  • 0.7.6
    record
    2026-07-16 · diff ↗
  • 0.7.5
    record
    2026-05-15 · diff ↗ ·
    removed 1 export
    run_seqfield
    added 4 exports
    ooxml_chart_uris, rtf_set_paragraph_style, rtf_styles_info, solid_fill
  • 0.7.4
    record
    2026-04-24 · diff ↗ ·
    added 11 exports
    block_list_items, body_add_list, docx_embed_font, list_item, ph_with.block_list_items, sheet_add_drawing, sheet_names, sheet_remove, sheet_write_data, xlsx_drawing, xlsx_styles
  • R
    R 4.6.0 released · 2026-04-24
  • 0.7.3
    record
    2026-01-16 · diff ↗ ·
    added 1 export
    cursor_reach_index
  • 0.7.2
    record
    2025-12-04 · diff ↗ ·
    added 4 exports
    as_base64, base64_to_image, from_base64, plot_in_png
  • 0.7.1
    record
    2025-11-14 · diff ↗ ·
    removed 5 exports
    slip_in_column_break, slip_in_footnote, slip_in_seqfield, slip_in_text, slip_in_xml
    added 1 export
    floating_external_img
  • 0.7.0
    record
    2025-09-03 · diff ↗ ·
    added 4 exports
    body_import_docx, docx_set_settings, open_file, ph_with.Date
  • 0.6.10
    record
    2025-05-30 · diff ↗
  • 0.6.9
    record
    2025-05-21 · diff ↗ ·
    added 6 exports
    block_gg, body_append_start_context, body_append_stop_context, fp_par_lite, layout_default, write_elements_to_context
  • R
    R 4.5.0 released · 2025-04-11
  • 0.6.8
    record
    2025-03-23 · diff ↗ ·
    added 17 exports
    slide_visible<-, ph_with.block_list, ph_with.character, ph_with.data.frame, ph_with.empty_content, ph_with.external_img, ph_with.factor, ph_with.fpar, ph_with.gg, ph_with.logical, ph_with.numeric, ph_with.plot_instr, ph_with.unordered_list, ph_with.xml_document, phs_with, resolve_location, slide_visible
  • 0.6.7
    record
    2024-10-09 · diff ↗ ·
    added 6 exports
    layout_rename_ph_labels<-, body_replace_gg_at_bkm, body_replace_plot_at_bkm, layout_dedupe_ph_labels, layout_rename_ph_labels, ph_location_id
  • 0.6.6
    record
    2024-05-05 · diff ↗ ·
    added 1 export
    body_comment
  • R
    R 4.4.0 released · 2024-04-24
Show 54 earlier eventsHide 54 earlier events
  • 0.6.5
    record
    2024-02-24 · diff ↗ ·
    added 3 exports
    fp_tab, fp_tabs, run_tab
  • 0.6.4
    record
    2024-02-05 · diff ↗
  • 0.6.3
    record
    2023-10-22 · diff ↗ ·
    added 2 exports
    docx_comments, run_comment
  • R
    R 4.3.0 released · 2023-04-21
  • 0.6.2
    record
    2023-03-28 · diff ↗
  • 0.6.1
    record
    2023-03-08 · diff ↗
  • 0.6.0
    record
    2023-02-17 · diff ↗ ·
    added 7 exports
    image_to_base64, officer_url_encode, rtf_add, rtf_doc, str_encode_to_rtf, to_rtf, uuid_generate
  • 0.5.2
    record
    2023-01-27 · diff ↗
  • 0.5.1
    record
    2023-01-06 · diff ↗ ·
    added 1 export
    shape_properties_tags
  • 0.5.0
    record
    2022-12-21 · diff ↗ ·
    added 5 exports
    cursor_reach_test, docx_current_block_xml, docx_set_character_style, docx_set_paragraph_style, run_wordtext
  • 0.4.4
    record
    2022-09-10 · diff ↗
  • 0.4.3
    record
    2022-06-13 · diff ↗ ·
    removed 4 exports
    ph_add_fpar, ph_add_par, ph_add_text, slip_in_img
    added 2 exports
    sp_line, sp_lineend
  • R
    R 4.2.0 released · 2022-04-22
  • 0.4.2
    record
    2022-03-23 · diff ↗ ·
    removed 3 exports
    ph_with_gg_at, ph_with_table_at, ph_with_text
    added 3 exports
    notes_location_label, notes_location_type, set_notes
  • 0.4.1
    record
    2021-11-14 · diff ↗ ·
    added 1 export
    set_autonum_bookmark
  • 0.4.0
    record
    2021-09-06 · diff ↗ ·
    added 3 exports
    fp_text_lite, run_footnote, run_footnoteref
  • 0.3.19
    record
    2021-07-21 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.3.18
    record
    2021-04-02 · diff ↗
  • 0.3.17
    record
    2021-03-05 · diff ↗ ·
    removed 4 exports
    ph_empty, ph_empty_at, ph_with_img, ph_with_img_at
  • 0.3.16
    record
    2021-01-04 · diff ↗ ·
    added 1 export
    hyperlink_ftext
  • 0.3.15
    record
    2020-11-01 · diff ↗ ·
    added 5 exports
    body_add_caption, body_add_plot, body_set_default_section, run_bookmark, run_word_field
  • 0.3.14
    record
    2020-09-07 · diff ↗ ·
    removed 9 exports
    body_default_section, body_end_section, break_column_before, ph_from_xml, ph_from_xml_at, ph_with_fpars_at, ph_with_gg, ph_with_table, ph_with_ul
  • 0.3.13
    record
    2020-08-30 · diff ↗ ·
    added 1 export
    table_stylenames
  • 0.3.12
    record
    2020-06-26 · diff ↗ ·
    added 1 export
    body_end_block_section
  • 0.3.11
    record
    2020-05-18 · diff ↗
  • 0.3.10
    record
    2020-05-14 · diff ↗ ·
    added 1 export
    opts_current_table
  • 0.3.9
    record
    2020-05-04 · diff ↗ ·
    added 8 exports
    block_pour_docx, plot_layout_properties, prop_table, section_columns, table_colwidths, table_conditional_formatting, table_layout, table_width
  • R
    R 4.0.0 released · 2020-04-24
  • 0.3.8
    record
    2020-03-13 · diff ↗ ·
    removed 1 export
    fp_sign
  • 0.3.7
    record
    2020-03-02 · diff ↗ ·
    removed 1 export
    location_eval
    added 20 exports
    block_caption, block_section, block_table, block_toc, body_add, empty_content, get_reference_value, page_mar, page_size, plot_instr, prop_section, run_autonum, run_columnbreak, run_linebreak, run_pagebreak, run_reference, run_seqfield, to_html, to_pml, to_wml
  • 0.3.6
    record
    2019-11-11 · diff ↗ ·
    removed 1 export
    stext
    added 2 exports
    fortify_location, ph_location_template
  • 0.3.5
    record
    2019-06-23 · diff ↗ ·
    added 1 export
    location_eval
  • 0.3.4
    record
    2019-04-30 · diff ↗ ·
    added 1 export
    sanitize_images
  • R
    R 3.6.0 released · 2019-04-26
  • 0.3.3
    record
    2019-03-01 · diff ↗ ·
    removed 1 export
    body_replace_at
    added 9 exports
    ph_location, ph_location_fullsize, ph_location_label, ph_location_left, ph_location_right, ph_location_type, ph_with, slide_size, unordered_list
  • 0.3.2
    record
    2018-07-23 · diff ↗ ·
    added 4 exports
    change_styles, docx_body_relationship, docx_body_xml, move_slide
  • 0.3.1
    record
    2018-06-12 · diff ↗
  • 0.3.0
    record
    2018-05-03 · diff ↗ ·
    removed 1 export
    fortify_fpar
    added 18 exports
    block_list, body_add_blocks, body_end_section_columns, body_end_section_columns_landscape, body_end_section_continuous, body_end_section_landscape, body_end_section_portrait, body_replace_img_at_bkm, body_replace_text_at_bkm, footers_replace_all_text, footers_replace_img_at_bkm, footers_replace_text_at_bkm, headers_replace_all_text, headers_replace_img_at_bkm, headers_replace_text_at_bkm, slip_in_column_break, slip_in_footnote, stext
  • R
    R 3.5.0 released · 2018-04-23
  • 0.2.2
    record
    2018-03-14 · diff ↗ ·
    added 3 exports
    annotate_base, body_add_docx, ph_with_fpars_at
  • 0.2.1
    record
    2018-01-08 · diff ↗
  • 0.2.0
    record
    2017-12-03 · diff ↗ ·
    added 8 exports
    add_sheet, body_replace_all_text, docx_show_chunk, ph_with_gg, ph_with_gg_at, ph_with_ul, read_xlsx, sheet_select
  • 0.1.8
    record
    2017-10-06 · diff ↗
  • 0.1.7
    record
    2017-09-16 · diff ↗ ·
    added 2 exports
    body_replace_at, docx_bookmarks
  • 0.1.6
    record
    2017-08-30 · diff ↗
  • 0.1.5
    record
    2017-07-27 · diff ↗ ·
    added 2 exports
    body_default_section, break_column_before
  • 0.1.4
    record
    2017-06-07 · diff ↗
  • 0.1.3
    record
    2017-05-01 · diff ↗ ·
    added 1 export
    media_extract
  • 0.1.2
    record
    2017-04-29 · diff ↗ ·
    removed 1 export
    has_zip
    added 11 exports
    body_bookmark, cursor_bookmark, doc_properties, docx_dim, docx_summary, ph_empty_at, ph_from_xml_at, ph_with_img_at, ph_with_table_at, pptx_summary, set_doc_properties
  • R
    R 3.4.0 released · 2017-04-21
  • 0.1.1
    record
    2017-03-09 · diff ↗ ·
    added 2 exports
    body_add_gg, has_zip
  • 0.1.0
    record
    2017-03-01
  • R
    R 3.3.0 released · 2016-05-03
Across CRAN, the median accepted release of the past year spent 23 hours in the queue, 90% under 11 days.How queue time is measured

Package metadata

First published
2017-03-01
Total releases
59 / 9 yrs
License
MIT + file LICENSE OSI · relicensed from GPL-3 in 0.5.1
Download size
1.2 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("officer")
Gohel, D., ArData, Beck, N., Calder, J., Denney, B., Eismann, M., Hangler, F., Harrold, J., Heckmann, M., Jia, H., Khan, W., Leleu, G., Moog, S., Muschelli, J., Sander, L., Stackhouse, M., & Victorson, A. (2026). officer: Manipulation of Microsoft Word and PowerPoint Documents (Version 0.7.7) [Computer software]. https://doi.org/10.32614/CRAN.package.officer

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for officer version 0.7.7 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy