kableExtra icon indicating copy to clipboard operation
kableExtra copied to clipboard

library(kableExtra) causes kable to make ugly tables by default

Open arencambre opened this issue 4 years ago • 1 comments

Describe the bug You get an ugly table if this is your .Rmd:

---
title: "R Notebook"
output:
  html_document:
    df_print: paged
---

```{r}
library(kableExtra)
knitr::kable(mtcars[1:5, ])
```

If you merely remove library(kableExtra), you get a good looking table.

arencambre avatar Mar 29 '21 22:03 arencambre

I am experiencing the same issue and looking for solutions. There are certain features in kableExtra which are functionally important for my purpose, but the changed look is definitely not ideal. The alternative is to add the special features directly in LaTeX. However, that is quite tedious. Any suggestions or notes will be appreciated.

sayaliph avatar Jan 13 '22 16:01 sayaliph

Setting options(kableExtra.auto_format = FALSE) before loading kableExtra as suggested in https://github.com/haozhu233/kableExtra/issues/592 may solve the issue.

iagogv3 avatar Sep 13 '23 15:09 iagogv3

This should be fixed in the master development branch on Github. Please comment if you still run into the issue after installing from Github and restarting R.

vincentarelbundock avatar Dec 05 '23 01:12 vincentarelbundock