save_kable() and density

I cannot increase the resolution of images saved to a file via save_kable(). below. Argument density does nothing. Below is a MWE. Any help appreciated, thanks.

---
output: html_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(kableExtra)
```

```{r}
data.frame(X = 123) |> 
  kbl() |> 
  save_kable("image.png", density = 600) # density of the saved image does not change

knitr::include_graphics("image.png")
```

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.