### show the PDF document
pdf = system.file("doc/sample.pdf",package="webmaps")
if (.Platform$OS.type == "windows") {
shell.exec(pdf)
}else{
system(paste(shQuote(getOption("pdfviewer")), shQuote(pdf)),
wait = FALSE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.