When rendering a flextable in a papaja document the following error is produced:
55 words in text body
0 words in reference section
tlmgr: package repository https://ftp.snt.utwente.nl/pub/software/tex/systems/texlive/tlnet (verified)
tlmgr install: package already present: bookmark
! Undefined control sequence.
<argument> \Oldarrayrulewidth
when running a minimal example with:
---
title : "Flextable & papaja"
classoption : "man"
output : papaja::apa6_pdf
#output : pdf_document
---
# Intro
Flextable in apa6_pdf
```{r setup, include = TRUE}
knitr::opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE)
library("papaja")
require(flextable)
data("mtcars")
flextable(head(mtcars))
The document renders properly when the normal pdf output format is used.
beamer_presentations. I think the answer applies to your case as well and with the offered fix I was at least able to compile your document.header-includes: - \providecommand{\Oldarrayrulewidth}{\arrayrulewidth}or consider usingkableextrainstead.Beamer presentation+flextableand by writing one here forflextable+papaja::apa6_pdfwe could increase the chance of people finding this great fix - these comments might be deleted.