Hugo Shortcodes

One of the delights of using blogdown to create blogs or websites is that it allows access to Hogo shortcodes which automatically create an HTML snippet based on the parameters you provide. You can even create your own, if you are up to it

Here are a few examples for use in RMarkdown. Check out the blogdown package and Hugo documentation for more detail

I tend to use the vembedr package but this is an alternative

library(blogdown)
shortcode("youtube", "e6GQBzRkc1A")

Speakerdeck

Shout out to Jenny Bryan for posting slides for her 20+ talks. Here is one of them


shortcode("speakerdeck", "8d8ba68c2ba14d42954fa2c96cf8bd5d")

Use the arrow keys to move through the slides


shortcode("tweet", ma\$status_id[sample(1:200, 1, rep=FALSE)])