get_poem <- function(poem) {
filename <- paste(system.file("extdata", package = "DickinsonPoems"),
poem, sep = "/")
stopifnot(file.exists(filename))
poemLines <- readLines(filename)
return(poemLines)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.