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")
```