#' @export
ensure_shell <- function(blogdir = ".") {
shell <- paste(blogdir, "shell.Rmd", sep = "/")
if (!file.exists(shell)) {
x <- c("",
'```{r child="content.Rmd"}',
'```')
write(x, shell)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.