officer is an R package for manipulating Word (.docx) and PowerPoint (*.pptx) documents.

1
vote
0answers
22 views

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 ...
0
votes
1answer
15 views

R Create and execute an officeR string

I want to create a powerpoint stack with pdfs I have created. I'm attempting to do this with officer. It works fine manually but I want to write the pdf out in code. Using a Two Content layout I want ...
1
vote
1answer
26 views

Add multiple bullets of text to PowerPoint slide via officer

Using the officer package in R, when working with a PowerPoint you can add text with the function ph_with_text. However, it's not clear how to add multiple bullets of text or how to set the level of ...
0
votes
1answer
28 views

How to add line breaks?

I'm trying to add line breaks using body_replace_all_text or body_add_par but am having no joy. Using \r\n shows correctly in OSX TextEdit, but not in Word.An example:library(officer)library(...
0
votes
0answers
21 views

R's officer package not recognizing Powerpoint placeholders in master layouts

Placeholders in powerpoint master layouts are not being consistently recognized by the officer package in R. In the example below I've attached a deck of 2 slides, each using a different master and ...
-1
votes
0answers
31 views

Officer syntax to add a header row when column names are not known

The syntax for adding a header row to a flextable requires seems to require knowing the column labels (keys) in advance.For example in my code I havegrowth_flex<-add_header(growth_flex,top=FALSE, ...
-1
votes
0answers
18 views

set_header_labels in officer in R

I have a flextable with col_keys. print(flex_prov$col_keys)1 "geo" "cmonth" "trend" "lmonth" "ychange" "mchange" "tchange"I have a named listprint(prov_header_small)...
-1
votes
0answers
20 views

How to do bulleted lists in Officer

I would like to put a list of text into ordered and unordered lists using officer.In ReporteRS, I used the following code:list_properties<-parProperties(list.style="unordered",level=2)mydoc<-...
2
votes
1answer
39 views

Load theme from existing chart

Using officeR and mschart packages I'm trying to match the theme of the company presentation. Is there a way to obtain the chart theme (for a further use in mschart) from an existing chart in pptx?
1
vote
1answer
45 views

Add content to .docx via a loop?

My aim is to add repeated sections to a .docx file, changing values in successive sections by pulling them from a data frame. Using the example code at https://cran.r-project.org/web/packages/officer/...
1
vote
1answer
36 views

Documentation of placeholder options

This is probably a very easy question to answer, but how can I find a list of options for placeholder arguments. In particular, ph_with_text(type=...) For a Title and Content slide will accept type=...
0
votes
0answers
77 views

Displaying R code using officer package

I've just started learning how to make reproducible research documents using R. The officer package looks pretty amazing. I've managed to make a Word document, but feel like I'm struggling to ...
0
votes
0answers
28 views

body_add_toc() in officer package

I'm working on creating .docx documents using officer package. I've got a problem with body_add_toc() function, which creates and empty "table of content" (just a gray rectangle with no actual content)...
1
vote
2answers
90 views

How to increase resolution of ggplots when exporting using officer R

I want to export charts to a PPT and am using the officer package to achieve the same. However, the default resolution of the charts is low and I would like to change that. I am currently using the ...
0
votes
0answers
65 views

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 ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,