I'm using rmarkdown in rstudio and want to knit to pdf. This works well, except for when I use kable. I'm using the following yaml and it used to work in the past, but now I had to reinstall R, Rstudio and MacTex and now it doesn't work anymore.
---
title: "example"
output:
pdf_document:
df_print: kable
latex_engine: xelatex
---
```{r}
cars
```
The error message I get is:
output file: example.knit.md
! LaTeX Error: Environment kable-table undefined.
Error: LaTeX failed to compile example.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See Study-1.log for more info.
Does anyone know how to solve this?
{r setup, include=FALSE} library(tidyverse) library(kableExtra) library(dplyr) library(base) library(broom) library(pander) library(knitr){r cars, echo=FALSE} cars- Laurens