officer is an R package for manipulating Word (.docx) and PowerPoint (*.pptx) documents.
Questions tagged [officer]
413 questions
13
votes
2 answers
Bind or merge multiple powerpoints in r
I have been using officer package to create the respective PowerPoint decks, however at this moment, i would like to merge/ bind them all as one slide deck and was not able to figure out. Can someone guide me if there any package that helps to merge…

Dinesh
- 391
- 2
- 9
13
votes
2 answers
Restart Figure Numbering for Appendix / Supplementary Material in bookdown
I am writing an article for a journal that requires Supplementary Material. I was hoping to use a unique label such as SuppMat: instead of the default fig: to send Figures and Tables into this section. If not, I can use the default fig label but I…

Patrick
- 915
- 2
- 9
- 26
11
votes
1 answer
R Markdown PowerPoint Slide Customization
---
title: "Untitled"
author: "April 2018"
date: "4/9/2019"
output: powerpoint_presentation
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```
## Slide with Plot
```{r pressure, fig.width=30, fig.asp=0.618,…

Display name
- 4,153
- 5
- 27
- 75
8
votes
2 answers
Table and Figure cross-reference officer R
I would like to be able to cross-reference a table or figure in a word document using the officer R package.
I have come across these materials so far but they do not seem to have a…

Jordan Hackett
- 689
- 3
- 11
8
votes
2 answers
R Shiny run task/script in different process
In my Shiny app users can generate heavy powerpoint report. When it contains a lot of slides it could take > 30 minutes to be done. And therefore I'd like to process those tasks in independent processes/tasks which could work even when app is closed…

Taz
- 5,755
- 6
- 26
- 63
7
votes
1 answer
R Officer Package: How to specify a certain placeholder when there are multiple nearly identical ones
I'm using the R officer package on a Powerpoint slide where I need to insert text into 5 identical placeholders, all next to each other in a row along the bottom of the slide. Before the ph_with_text function was deprecated, it was possible to use…

PlanWithAMan
- 71
- 2
7
votes
2 answers
Dynamically set colnames from character string in flextable
The flextable help details describes adding new headers as manually typing each existing header name against each new header name, like this:
library(flextable)
ft_1 <- regulartable(head(iris))
ft_1 <- set_header_labels(ft_1, Sepal.Length = "SL",
…

J.Con
- 4,101
- 4
- 36
- 64
6
votes
1 answer
Set font family and size of equations in flextable
I'm looking for an option to set the the font family and size of equations in a flextable.
In general the font family and size of the table, rows and columns could be set via the sugar functions flextable::font and flextable::fontsize. However, both…

stefan
- 90,330
- 6
- 25
- 51
6
votes
1 answer
How can I import an external slide in powerpoint with officer in R?
I want to copy the content of two slides from two pptx files into one pptx file using officer in R.
I thave started with the following code:
slide1 = read_pptx('1.pptx')
slide2 = read_pptx('2.pptx')
slide2_content = slide2 %>% slide_summary()…

sikreutz
- 61
- 1
6
votes
3 answers
create pdf in addition to word docx using officer
I am using officer (used to use reporters) within a loop to create 150 unique documents. I need these documents however to be exported from R as word docx AND pdfs.
Is there a way to export the document created with officer to a pdf?

Amanda
- 61
- 1
- 3
6
votes
1 answer
How to add notes to a PowerPoint (officer)
I'm creating a PowerPoint document from R using the officer package and I'd like to add notes to my slides.
Is it possible to add notes to a particular powerpoint slide from R (preferably using the officer package)?
I'm really unsure if an…

Tom Bombadil
- 183
- 4
6
votes
4 answers
R officer package: Add slide numbers that reflect current slide position
I'm an avid user of the Reporters and Officer packages and currently trying to transition to Officer for a Powerpoint workflow. I'm using a slide template that includes slide number placeholders in the master.
When using Reporters, I am able to add…

abidawson
- 61
- 3
6
votes
2 answers
Is it possible to change flextable default font from arial
I love David Gohel's Officer and Flextable packages and they are really a flexible alternative to write word document reports with complex layouts which are not achievable in R markdown.
I have created custom styles for paragraphs and tables using…

Rich Tyler
- 61
- 1
- 2
5
votes
1 answer
OfficeR error: "Docx is already edited", but file doesn't even exist yet. What could be going on?
I have a problem that would be difficult to replicate, thats why i just want ideas of what could be behind this error. When i create a docx an want to save it in the NAS in my office, i would get this error (where doc2 is the docx and Direc4 is my…
5
votes
0 answers
Fractions and Superscript in a table while knitting to docx (RMarkdown)
I have been using officedown for some time now to knit to docx. I encountered an issue where a table I had to create required superscripts in the table as shown below
This led me to go over all the methods for creating a table. Rather than typing…

Patrick
- 915
- 2
- 9
- 26