Questions tagged [officedown]
64 questions
1
vote
0 answers
Rmarkdown officedown block_landscape no page number
I use officedown because I want to take advantage of the ability to and .
When I used the Officedown template (the advanced Word document) page numbers were only displayed after the…

Moritz1896
- 11
- 2
1
vote
1 answer
Why is R's officer/officedown moving my header down to the bottom of the page?
I only have one "heading 1" and yet it's at the bottom acting like it's the second header. Is there something I'm not aware of?
Code with example data:
library(flextable)
library(dplyr)
library(officer)
library(officedown)
df <-…

Anonymous
- 453
- 1
- 6
- 14
1
vote
1 answer
R markdown landscape-only word document
I am trying to knit an .Rmd file to a word document that is entirely in landscape format.
Based on this post, I have tried using a reference doc. I created a Word document, changed the layout to landscape and saved it in the same folder as the .Rmd.…

damico
- 195
- 1
- 7
1
vote
1 answer
Cross-reference issues in officedown
I'm having a problem with the cross-reference in an officedown rdocx_document, so for the first figure, the reference is printed correctly, with Figure \@ref(fig:fami), but for the second column , the code Figure \@ref(fig:ivi_plot) prints only the…

Igor Cobelo
- 419
- 3
- 12
1
vote
1 answer
Combine multiple docx with columns in officer R
I am trying to use the officer package in R to create multiple outputs with columns and then combine the outputs into a single document.
I am able to create the initial outputs with columns, but when I combine them with body_add_docx() the column…

Mxblsdl
- 484
- 6
- 16
1
vote
1 answer
Table title on a different page when using a flextable object in a officedown document
I'm trying to put together a document where a "Tables" section will be found at the end of it. There, all the tables that I will have cited throughout the document will be shown.
My problem is that whenever I have a long table spanning several…

jordan_oplante
- 75
- 8
1
vote
1 answer
How to write a table with hyperlinks in officedown powerpoint with R?
I can print my data with gt table and create hyperlinks for different cells, as shown below by knitting an HTML file:
library(dplyr)
library(gt)
raw_dat <- mtcars[1:15, ] %>% rownames_to_column(var = "id") %>% select(id, mpg)
df <- tibble(
name =…

Maral Dorri
- 468
- 5
- 17
1
vote
1 answer
knitting as rpptx_document does not recognize my ppt template (Officedown)
I'm trying to create a powerpoint document with officedown using a template:
---
date: "`r Sys.Date()`"
author: "Your Name"
title: "Officedown test"
output:
officedown::rpptx_document:
reference_doc: template.pptx
---
```{r setup,…

jgaitan
- 21
- 4
1
vote
2 answers
R Officedown does not apply the mapped style to "Normal" in first paragraphs [officedown]
Good day
We are using R officedown in R Markdown (.rmd) to create a MSWord document. Our default MSWord style template uses a style called "Body Text" for all paragraphs in the document. MSWord normally defaults to the "Normal" style for all…

Jaco
- 31
- 4
1
vote
0 answers
officedown::rdocx_document showing no number in figure and table captions
The number is not appearing in the table and figure captions. For example, even if I compile a default document in r studio i.e. New File -> R Markdown... -> From Template -> Advanced Word Document, and then knit the document, I see missing table…

user3563929
- 214
- 1
- 8
1
vote
0 answers
Problems with R officedown when used in an automated task
I have a script that creates a .docx document with all the nice formatting I have configured using officedown ("xxx.Rmd"). It runs perfectly when I execute it and produces the expected result.
This is the script:
setwd("xxx")
rmarkdown::render(
…

DesertRatilla
- 11
- 1
1
vote
0 answers
RMarkdown Officedown: Insert svg image to word document
Is it possible to insert a svg image to a word document (.docx)?
This is my YAML:
---
title: "SVG Image"
output: officedown::rdocx_document
---
For jpg images, the following code works perfectly:
```{r, fig.cap = "cap", fig.id =…

Sophie Wupper
- 35
- 4
1
vote
1 answer
How to omit sections from table of contents in R Markdown with officedown
I am drafting an rmd that needs a Table of Contents and needs to be knitted to Word. I am using the officedown package and while I can get a TOC, I need to have the table not include the Section header for the table of contents. I have…

ashcrashbegash
- 157
- 11
1
vote
0 answers
Printing formatted markdown text with Officedown knit_print_block
I'm using the officedown function knit_print_block to print figure captions in Rmarkdown, with MS Word output. This is needed because I'm looping through lots of figures, and need each to return the captioned figure, as well as a…

MLevine
- 113
- 6
1
vote
1 answer
Nested for loop to add slide numbers for ppt reports using officer
With code below, I could dynamically generate multiple ppt reports using officer package:
url_list <- c(
…

ah bon
- 9,293
- 12
- 65
- 148