Render png image of first slide for sharing on social media.
Requires a local installation of Chrome as well as the webshot2 package:
remotes::install_github("rstudio/webshot2").
Examples
if (interactive()) {
with_example("slides.Rmd", requires_chrome = TRUE, requires_packages = "webshot2", {
# Render png image of first slide from Rmd file
# sized for sharing on social media
to_social("slides.Rmd")
})
}
