officer is an R package for manipulating Word (.docx) and PowerPoint (*.pptx) documents.
Questions tagged [officer]
413 questions
0
votes
1 answer
How to delete blank line at beginning of docx from officer
I am using officer for R to create a a Word (docx) document. Here is the code:
library(officer)
library(magrittr)
my_docx = read_docx() %>%
# cursor_begin() %<>%
body_add_par("Hello here is a test sentence to see if there is a blank line…

Prevost
- 677
- 5
- 20
0
votes
1 answer
Office word throw warning info when open officer generated docx with tiff in it
When I'm opening a docx file generated by R package officer which is inserted with a tiff picture file, the Office 2016 throw me an error massage.
example:
library(magrittr)
library(ggplot2)
library(officer)
img <- "test.tiff"
pic <- ggplot(mtcars,…

Su Na
- 334
- 1
- 7
0
votes
2 answers
Error when using function that wraps around ph_with_vg_at
I'm getting the following error when using the officer function ph_with_vg_at:
Error in dml_pptx(file = dml_file, width = width, height = height, offx = left, :
argument "height" is missing, with no default
I think the issue is the…

Brent
- 11
- 2
0
votes
1 answer
Combine tables and text in powerpoint
I would like to combine text and tables in the same shape on a slide. For example I want to add text above a table, the table, then text below. What I would like to do is have the ph_with_text and ph_with_table functions below append their str and…

John Harrold
- 33
- 5
0
votes
1 answer
R / officer package / docx_summary function doesn't exist
I am on R version 3.3.3 using package officer 0.1.1
library(officer)
docx_summary("doc.docx")
Gives this error:
Error: could not find function "docx_summary"
I tried: officer:: and officer::: but it seems that it is the only missing function.
I…

Yousri Hajri
- 1
- 2
0
votes
1 answer
R ReporterRs Package - Add text after bookmark
I'm creating a tool to automatically generate reports for people in the office using the ReporteRs package in R. We have a standard set of tables/graphs, but the number of times a single table or graph may appear will vary from person to person. Due…
user5827909
-1
votes
1 answer
Can you convert .docm files to .docx using R?
I have about 100 .docm files that I need to convert to .docx. I am doing this because I am importing tables from the .docx files using the officer library (this does not work with .docm).

dunbar111
- 185
- 1
- 8
-1
votes
2 answers
insert an external docx using "officer" pakage
Why doesn't work body_add_docx method in package "officer"? Where did I make mistake?
library(officer)
library(magrittr)
read_docx(path = "/home/user/page1.docx") %>% # load page1.docx as base document
body_add_break() %>% # add page break
…

Sergey Nosov
- 350
- 3
- 10