Trying to save a table I generated with kable as a png or pdf file. Using the example code in the documentation for save_kable
kable_styling("striped") %>%
row_spec(1, color = "red") %>%
save_kable("test.pdf")```
I receive the error
>Error in `with_random_port()`:
! Cannot find an available port. Please try again.
Caused by error in `startup()`:
! Failed to start chrome. Error:
Run `rlang::last_trace()` to see where the error occurred.
Could anyone help?
Using package kableextra version 1.4.0 on Windows 11 with R version 4.4.0 (2024-04-24 ucrt)" and RStudio 2024.04.2 Build 764
3