使用 Kable 时编织到 pdf 不起作用

Knit to pdf doesn't work when using Kable

我在 rstudio 中使用 rmarkdown 并想编织成 pdf。这很好用,除了我使用 kable 的时候。我正在使用以下 yaml,它过去曾经工作过,但现在我不得不重新安装 R、Rstudio 和 MacTex,现在它不再工作了。

---
title: "example"
output:
  pdf_document:
    df_print: kable
    latex_engine: xelatex
---

```{r}
cars
```

我收到的错误信息是:

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.

有人知道怎么解决吗?

这是 rmarkdown(针对更高版本的 Pandoc)的错误,I just fixed on Github。请尝试:

remotes::install_github('rstudio/rmarkdown')