Questions tagged [officer]

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

413 questions
1
vote
1 answer

Cannot change PPT title font with officer

Title font not changing in Powerpoints created with officer. I have tried adding fp_text into ph_with, and while it runs nothing it produced from it. library(officer) library(magrittr) title.font <- fp_text(font.size = 28) example_pp <-…
jarichardson
  • 165
  • 8
1
vote
1 answer

How to make a border around an image in Word with officer

I want to create a Word file with a text paragraph on the left and an image of a leaflet-map on the right. So far I can do it, but I would also like to make a border around the whole leaflet image. The border in my example is only half the size of…
SeGa
  • 9,454
  • 3
  • 31
  • 70
1
vote
0 answers

Import Combined docx Document to R with the officer Package

I want to import and modify a docx file in R with the officer package. However, when I use the suggested functions, R imports only an empty data.frame. Consider the following example: # Packages library("magrittr") library("officer") # Create…
Joachim Schork
  • 2,025
  • 3
  • 25
  • 48
1
vote
1 answer

Text align in officer package

I couldn't find any argument to adjust the text alignment in ph_add_text to justify. Im using officer to make slide from r. Or any suggestions to make slide from r that have text alignment argument. Can anyone help me?
Wawa
  • 73
  • 9
1
vote
1 answer

Convert DOCX to plain text (hopefully in R)

I'm trying to convert DOC or DOCX files to plain text (TXT), ensuring that all formats and styles are ignored and encodings render properly, and that no manual pre-processing needs to be done by the user. The officer package gets me most of the way.…
tef2128
  • 740
  • 1
  • 8
  • 19
1
vote
1 answer

officer placeholder text is not saved to output file

I am trying to produce some powerpoint reports with OfficeR, but am having trouble saving the results to a file. I am able to process the data and fill the placeholders. The content that is intended for the placeholders is shown when I use…
DataWiz
  • 401
  • 6
  • 14
1
vote
1 answer

Possible to have repeat values of ph_label?

Is it possible to have repeat values of ph_label within the same slide of a ppt document created with officer? Seems like i shouldn't be able to, but the document I'm working with right now has repeat values. Makes it really difficult to properly…
1
vote
0 answers

long documents processing time

We are using officer to generate reports (about 100 pages with many graphs and tables) automatically. If we run the chapters separately, each file runs very fast.But when running all 12 files together this takes up to an hour. We assume that all…
Jurelisa
  • 11
  • 2
1
vote
0 answers

footers_replace_img_at_bkm does not show an image in the footer/header

I want to replace an image in the header/footer in a .docx document, with R and preferably using the officer package by david gohel. I am using the body_replace_text_at_bkm function. I have tried to use the the example code from…
1
vote
2 answers

Is there a function to scrape the notes sections of Powerpoint Slides?

I am attempting to read through ~ 100 powerpoint slides and read the notes sections of each slide. I will do some text wrangling and write to csv after the fact, but need to get the notes in a workable format first. I am working with the officer…
1
vote
1 answer

R::officer cannot finds rows or id in powerpoint slide

R package officer cannot write to powerpoint slide. Layout_properties confirms field ctrTitle exists but slide_summary reports zero rows. > pres<-read_pptx() > add_slide(x=pres,layout='Title Slide', master="Office Theme") pptx document with 1…
Pradeep
  • 350
  • 3
  • 16
1
vote
1 answer

Create Header and Footer in the .docx report using R?

I want the header and footer to repeat in every page of the .docx report. Everyone is suggesting use the RMarkdown to get the header and footer. Is it possible using R? I am using Officer package for .docx report. I want this header & footer in…
1
vote
1 answer

adding images to flextable using Display() & as_image() in loop doesnot work

I have a zip file which has multiple images of 2 types.1 -FrequencyRose images 2- EnergyRose images. I have created a flextable and then replacing the even rows with images and odd rows with the image titles using for loop . The loop is correctly…
1
vote
1 answer

Automatic positioning of images and tables in PowerPoint slide officer

Hi so I have I am trying to write my own function that will automatically size and central align the images/tables that I am generating from officer. The top/left functions in the add_image and add_table are good when I add each table manually as…
Zuti
  • 85
  • 8
1
vote
1 answer

power point corrupted using officer

I am using officer to make a ppt and i am using following code to insert a table in one of the slide. All is working fine. Though In the table, I need to do conditional text coloring, which works fine, if I do it multiple times. But when I use a for…
user1631306
  • 4,350
  • 8
  • 39
  • 74