officer is an R package for manipulating Word (.docx) and PowerPoint (*.pptx) documents.
Questions tagged [officer]
413 questions
0
votes
0 answers
I'm getting zip::unzip function error while using user-defined function to generate multiple .doc files with officer package
For starters, I am pretty new in R programming (or programming in general) - so it is possible I made some pretty straightforward mistakes. I need this function to generate feedback for subjects of my experiment - before the core procedure they will…

M_Kos
- 78
- 8
0
votes
1 answer
Categorize and highlight table sections with flextable
I have below dataframe which is categorized by the column Category
> dput(mydata)
structure(list(Category = c("Executive", "Management", "Management",
"Management", "Professional", "Professional", "Professional",
"Para-Professional",…

Sandhya Ghildiyal
- 253
- 2
- 10
0
votes
1 answer
Percentage format for y axis in mschart
Ok, this is kind of driving me insane. Hopefully I'm just stupid and someone can point me to the right answer quickly. I'm trying to format the y-axis to be a percent rather than a number. Here is a simple example…

Jessica Langford
- 55
- 7
0
votes
3 answers
Multiple text formats in unordered list
I'm trying to bold a single word within a sentence in an unordered list bullet (in PPT). Is this possible? Putting a combination of fpar/ftext objects into the str_list within unordered_list throws an error. Thanks in advance.
EDIT, adding example…

HRcode
- 3
- 2
0
votes
0 answers
Export images from R to word
I have a code in R with a lot of plots. Copying those plots to a word document manually is too much work, so I am looking for some code that exports those plots directly to a word document. I have tried to use the officer package, but I do not…

JN_2605
- 145
- 6
0
votes
1 answer
Second line of text in pptx subtitle
I have added a Title Slide to a pptx object, and want to add a second line in the subtitle location.
I've tried using ph_add_fpar function with no success. I'm still new with the package so probably not using the correct functions!
mypowerpoint…

chrisR
- 15
- 2
0
votes
0 answers
Officer using rvg and ggplot
I appear to be getting an error that causes RStudio to crash when trying to use the rvg options to plot ggplots to a slide when using officer.
The documentation suggests something similar should…

h.l.m
- 13,015
- 22
- 82
- 169
0
votes
1 answer
Table with "repeat header" option off
I'm inserting a flextable into .docx with add_body_flextable. How can I switch off "repeat header" option?

Łukasz Deryło
- 1,819
- 1
- 16
- 32
0
votes
1 answer
Rshiny Ignore download if object not present
I have a shiny app where users upload 5 data sources, some summary tables are generated, then these tables download to ppt. At present, this download only works if all 5 sources are loaded into the app. I'm trying to find a workaround to this via…

jarichardson
- 165
- 8
0
votes
0 answers
Is it possible to set a .docx output text to spanish with R officer?
I need to export a character string column to independent .docx documents (one doc per row). I was able to do it with the officer package, but the doc it generates automatically sets the language to english. I need it in spanish, but I hadn't been…

fronoso
- 1
0
votes
1 answer
Export R base graphics using rvg to PowerPoint
I am trying to use the officer package in order to produce a PowerPoint document that contains R base graphics, preferably not with fixed resolution, but rather as editable vector graphics. Here is what I have been trying, but the resulting…

HPF
- 185
- 8
0
votes
1 answer
Generating word report in shiny using officeR
I want to use shiny to take a set of dates and days as inputs, calculate the number of days between those days, and then generate the output of these operations in a word document. The code works when I just use R, but when I try to run this in…

CGN
- 687
- 1
- 6
- 12
0
votes
0 answers
R officer plots associated to excel sheet
I have recently started learning about officer to try to automatize ppt creation. When I manually construct PPTs, I can easily change an incorrect number which automatically updates the chart.
Is there any way to achieve this functionality with…

boski
- 2,437
- 1
- 14
- 30
0
votes
0 answers
Error using tables in officer: "no applicable method for 'ph_with' applied to an object of class "c('xml_document', 'xml_node')"
I've been trying to generate powerpoint slides with officer and ran into the following Error:
Error in UseMethod("ph_with", value) :
no applicable method for 'ph_with' applied to an object of class "c('xml_document', 'xml_node')"
I can reproduce…

DataWiz
- 401
- 6
- 14
0
votes
1 answer
OfficeR/Flextable: ase_url = base_url, as_html = as_html, :
Unfortulately, I cant produce a reproduceable example because this works on by dev machine but not on another. it should be asimple flex table on slides
What could be causing this in officeR/flextable
Error in doc_parse_raw(x, encoding = encoding,…

Pritish Kakodkar
- 307
- 1
- 4
- 12