list_poems <- function() {
dirname <- paste(system.file("extdata", package = "DickinsonPoems"))
curdir <- getwd()
stopifnot(dir.exists(dirname))
setwd(dirname)
poems <- list.files()
setwd(curdir)
return(poems)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.