setwd("H:/")
getwd()
Sys.getenv("PATH")
Sys.setenv(PATH=paste(Sys.getenv("PATH"),"C:/Program Files/MiKTeX 2.9/miktex/bin/x64",sep=";"))
system("R CMD Rd2pdf emdi")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.