The goal of {namer} is to name the chunks of R Markdown files. It's your safety net when you've (willingly) forgotten to name most chunks of all R Markdown files in a folder. {namer} does not give meaningful labels to your chunks, but it gives them labels that won't change depending on their position like the automatic knitr:::unnamed_chunk
function does when knitting. So you can e.g. shuffle your chunks and not loose their cache, or more easily debug over a whole folder!
For context about why you should name your R Markdown chunks, read this blog post.
The screenshot below is a real life example, result of running namer::name_dir_chunks("pres")
. In each of the files in the dir "pres", it labelled chunks using the filename and numbers.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.