This error message is produced by knit when I try to convert an Rmd file to pdf. I had updated all my packages before my attempt.
YAML looks like:
---
title: "Proven i religionskunskap"
author: "Frank Bach"
date: "`r Sys.Date()`"
bibliography: reference.bib
biblio-style: apa-like
csl: university-of-gothenburg-apa-swedish-legislations.csl
toc: FALSE
tables: yes
output:
bookdown::pdf_document2
lang: sv
header-includes:
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{array}
\usepackage{multirow}
\usepackage{wrapfig}
\usepackage{float}
\floatplacement{figure}{H}
---
and the r setup
```{r setup, include = FALSE}
library(papaja)
library(tidyverse)
library(readr)
library(lavaan)
library(scales)
library(psych)
library(semPlot)
library(equaltestMI)
library(semTools)
library(kableExtra)
library(gridExtra)
library(broom)
library(gt)
knitr::opts_chunk$set(
echo = FALSE,
warning = FALSE,
cache.extra = knitr::rand_seed,
out.extra = ""
)
set.seed(42)
options(OutDec= ",")
theme_set(theme_apa())
```
Best regards
Frank Bach