`r if (knitr::is_html_output()) '
'`
bib = knitr::write_bib(c( .packages(), 'blogdown', 'bookdown', 'knitr', 'rmarkdown', 'htmlwidgets', 'webshot', 'servr', 'xaringan', 'animation', 'processx', 'later', 'widgetframe', 'pkgdown' ), file = NULL) bib = unlist(bib) bib = gsub("'(Htmlwidgets|iframes)'", '\\1', bib) xfun::write_utf8(bib, 'packages.bib')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.