简体   繁体   中英

R kableExtra - Having issues with latex

There was a similar post on this, but it did not have the answer I was looking for. Here

I am trying to replicate Hao's example where he does:

```{r cars}
library(kableExtra)
library(knitr)
dt <- mtcars[1:5, 1:6]
kable(dt, format = "latex")
```

However the output is blank. When I switch to HTML, it is ok. I tried creating a PDF, but that didn't work either.

Help is much appreciated. Thanks, Aksel

The solution was to install latex(MaxTeX) on my mac. Thank you @jafSF.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM