Questions tagged [officer]
officer is an R package for manipulating Word (.docx) and PowerPoint (*.pptx) documents.
242
questions
0
votes
0answers
19 views
Creating multiple Word file reports in a for loop in R Markdown
I'm trying to generate multiple reports automatically with R markdown. I have a MS Word file that I import to R with officer library. In this MS Word file I want to substitute the word alpha with A, B,...
0
votes
0answers
26 views
Add Page Count in Word using officer in R
I am trying to add a total page count in a MS Word document that I am generating in R using the officer package. I have tried two approaches for achieving this. My template Word document consists of 1 ...
0
votes
0answers
27 views
Generating Multi level lists in Word with Bullets Using Officer in R
I am trying to generate a MS Word document in R using the officer package. I found functions like unordered_list with level_list as an argument to generate unordered list of text for Powerpoint but ...
3
votes
2answers
113 views
Adding image to text box using officer
I am looking at adding an image to a word document using the officer package. The word document template looks like this:
These are all text boxes and I am able to replace all the text such as ...
0
votes
0answers
24 views
Export GT table with Officer
I am trying to export a gt table using the package officer but I get this error message.
Error in UseMethod("ph_with", value) :
no applicable method for 'ph_with' applied to an object of ...
0
votes
1answer
23 views
R flextable proc_freq remove label column
Is there a way to remove the label column from the proc_freq() flextable after it has been created?
When a flextable is created from scratch, i.e. from a dataframe, one can specify with col_keys the ...
0
votes
0answers
33 views
How to avoid printing less-than sign as < in R using officer package
I am using officer R package to output a summarization table. In this table I have a column of P values which sometimes there are some <0.05 values there. However, the less-than sign of "<&...
1
vote
1answer
35 views
Ensure S3 methods from dependent package are loaded when using double colon (::)
When using S3 methods from dependent packages, how do I ensure that a package loads (and attaches?) all dependent packages when called using the double colon (::) operator without a prior library() ...
0
votes
1answer
36 views
Print a Shiny reactive value on WordR
I am looking for some help please to print a reactive value in a Shiny session into a docx with WordR. A very stripped down version of my app is presented below.
The code for the docx template is `r ...
0
votes
0answers
30 views
Is there a way to edit existing slides using officer (or any other alternative) in R?
I have been trying to modify text elements in some particular slides of my PowerPoint using officeR package. However, I can only add a new slide and add text boxes etc. to it. Is it possible to edit ...
2
votes
0answers
74 views
How to create a footer on powerpoint slide using R packages officedown and officer
Revised a second time!!
There is an example .rmd that comes with the officedown package and in that are chunks that show how you can use the officer package placeholder ("ph") tags within ...
1
vote
1answer
29 views
Using header after page 1 (frontpage) using OfficeR
I followed the steps in this answer to combine two documents
Writing word documents with the officer package: How to combine several rdocx objects?
But one document is a frontpage and the other ...
0
votes
0answers
24 views
Officer word breakline to replace multiple line text R
I am using officer R package to replace values in a Word document. How to replace existing placeholder (here place) by a multi line text of unknown length? I have tried \n and <br> for breakline ...
0
votes
1answer
29 views
How to add a border to fpar in Officer R
I am trying to use the Officer package to create a docx. I want to create paragraphs with different levels and text styles while also having each paragraph have its own border. I have tried using ...
0
votes
1answer
48 views
How to add a flextable and text with multiple columns on same landscape page
I want to create on the same word landscape document both a table and text formatted in column.
The problem is that whenever I add body_end_section_columns_landscape() it creates a new page.
Example ...