Set the appropriate path and run this command:
devtools::install_github("erikerhardt/RmdNameChunk")
Read an Rmd file, update existing prefixed code chunks, and renumber.
library(RmdNameChunk) rmd_name_chunks( fn_in = "test_in.Rmd" , fn_out = "test_out.Rmd" , prefix_chunk_name = "chunk-" )
Review the input and output files to see how the chunk header names have been updated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.