Skip to content

Instantly share code, notes, and snippets.

View simonschoe's full-sized avatar
🤗

Simon Schölzel simonschoe

🤗
View GitHub Profile
@simonschoe
simonschoe / create-sharecard.R
Last active February 12, 2021 08:31
Create sharecard of xaringan title slide for sharing
# taken from: https://www.garrickadenbuie.com/blog/sharing-xaringan-slides/
screenshot_share_image <- function(
slides_rmd,
path_image = "share-card.png"
) {
if (!requireNamespace("webshot2", quietly = TRUE)) {
stop(
"`webshot2` is required: ",
'remotes::install_github("rstudio/webshot2")'