Questions tagged [officer]

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

413 questions
0
votes
1 answer

Global options for officer R package

In the ReporteRs R package, one could set global options such as font family and size through R's options(). For instance, if I wanted to set my default fontsize to 10 and use Arial as a default font, I'd use options('ReporteRs-fontsize' = 10,…
0
votes
0 answers

Bug? when defining id, it says out of bounds when it shouldn't

layout_properties ( x = my_pres, layout = "Comparison", master = "Office Theme" ) master_name name type id ph_label ph offx offy 3 Office Theme…
Zuti
  • 85
  • 8
0
votes
0 answers

How to solve the error from read_docx when exporting a flextable to word

I kept on receiving the error message when trying to export the flextable to word document. Example: doc <- read_docx() Error in utils::unzip(file, exdir = tmp) : argument "file" is missing, with no default doc <-…
J.Davis
  • 1
  • 2
0
votes
1 answer

How to name a column " " in officer was able to do it previously in ReporteRs

this is a big problem for me as I need to have un-named column names inside my flextable in officer. This previously worked with the ReporteRs version. But so far haven't been able to do this, tried using the following code: rename(` ` = col0) When…
Zuti
  • 85
  • 8
0
votes
0 answers

How to extract images from uploaded word document in Shiny

I am working on a Shiny app that reads Word documents uploaded by users. The uploaded document then displays a table of all elements in the document and their formatting. I want it to also show any pictures from the uploaded Word doc. Documents…
IanG
  • 1
  • 1
0
votes
1 answer

R officer package-select slide by title

I would like to select a table from a PowerPoint presentation, and later loop this to pull data from the table in each week's PowerPoint presentation. However, the slide which contains the table of interest shifts slightly throughout one year's…
mgdixon
  • 1
  • 1
0
votes
2 answers

Add a flextable at a bookmark in the body of a word document from R

I'm trying to add a flextable at a specific bookmark within the body of a Word document. So far I have found the following options: footers_flextable_at_bkm {flextable} headers_flextable_at_bkm {flextable} body_add_flextable {flextable} But none…
morgan121
  • 2,213
  • 1
  • 15
  • 33
0
votes
0 answers

HighcharteR in OfficeR/RVG package possible?

I have to implement a download function in shiny app. This is an example code: library(rvg) library(ggplot2) library(officer) library(highcharts) library(jpeg) library(ggplot2) font.add.google("Open Sans",…
user7353167
0
votes
2 answers

Creating space under/over paragraphs, tables etc

I cant figure out from the officer manual or function reference, if it is possible to create space between objects in a word document? By space i mean a function that would equal pressing "enter" while writing. Thank you in advance!
Kristina
  • 91
  • 1
  • 9
0
votes
2 answers

body_add_flextable returning error - no applicable method for 'docx_str'

I have been trying to add a flextable created via rtable::FlexPivot into a word document using officer. library(magrittr) library(rtable) library(officer) library(flextable) data = mtcars data = group_by(data, vs, am, gear, carb) data =…
Ricecakes
  • 681
  • 1
  • 5
  • 13
0
votes
0 answers

Powerpoint manipulation - Add a slide at an index OR delete a slide

I've been bouncing between two packages for my needs. We make quite a few powerpoints at work, and I've been trying to automate the template, so all that's left to do is populate the template with data. We are pretty data heavy, and the actual…
Cody Friszell
  • 27
  • 1
  • 8
0
votes
0 answers

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 layout. In the "title" layout, the placeholders…
Joe
  • 3,217
  • 3
  • 21
  • 37
0
votes
1 answer

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). Even the example from the officer vignette…
Iga N
  • 1
0
votes
1 answer

Adding flextable including images in PowerPoint

I'm trying to add a flextable object including an image to PowerPoint using officer. But the image disappears. I can reproduce the problem using the example David has posted…
0
votes
1 answer

How to apply officer::read_docx to whole folder

I am attempting to scan many documents, with the purpose of reorganizing the text into a standard format. This involves either extracting the table using docxtractr, and extracting the body text separately using textreadr, or using…
Anonymous coward
  • 2,061
  • 1
  • 16
  • 29
1 2 3
27
28