Join us in building a kind, collaborative learning community via our updatedCode of Conduct.

Questions tagged [officer]

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

6
votes
2answers
471 views

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 ...
4
votes
1answer
113 views

Removing slides of a presentation using officer package in R

I am working with officer package in R to transfer my plots as outputs to a power point presentation. Every time I run the code, I want to make sure that there are no slides in the pptx in which I ...
3
votes
0answers
74 views

How to track changes in word .docx files generated from within R

I am trying to write reproducible manuscripts in R using the marvelous 'bookdown2' package (as a part of the incredible rrtools package) that are sent to publishers for peer review in .docx format....
2
votes
2answers
238 views

officer package function for adding an R plot to a presentation

I am working on transfering my plots to a presentation using officer package in R. A ggplot can be transferred using the ph_with_gg() function but what is the function to transfer normal R plots? I ...
2
votes
1answer
114 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 ...
2
votes
1answer
56 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?
2
votes
1answer
161 views

r - Why can't I send a group of plots in a grid to PowerPoint with officer?

I've created a grid of qicharts2 plots using gridextra but when I try to send it to PowerPoint using officer I get this error..Error in doc_parse_raw(x, encoding=encoding, base_url=base_url, ...
2
votes
0answers
38 views

R: 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 ...
2
votes
0answers
52 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 ...
1
vote
2answers
224 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 ...
1
vote
1answer
166 views

ph_with_vg and ggplot on R

I am able to create my desired chart using ggplot using the following code:ggplot(data, aes(x=as.Date(data$Date, "%d/%m/%Y"), y=items)) + geom_col(fill="#00cccc")However, when i use it with my ...
1
vote
1answer
33 views

Doesn't work body_replace_all_text() method in package “officer”

The code below doesn't worklibrary(officer)library(magrittr)read_docx("/home/user/document.docx") %>%body_replace_all_text("placeholder1", "text1") %>%print(target="/home/user/out....
1
vote
1answer
32 views

Can officer re-order slides?

Here's the situation: I have a (corporate) Powerpoint template which contains the Master, a Title slide, and a "Closing" last slide. I'd like to be able to use that as the basis for my work in R with ...
1
vote
1answer
54 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=...
1
vote
1answer
163 views

Modify the format of a portion of a flextable cell

I want to modify the format of a portion of a cell, while leaving the remaining text unmodified for inclusion in a .docx report:e.g., Brill (Scophthalmus rhombus) in subdivisions 22-32 (Baltic Sea) ...

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