pdf_path = test_path('Rplots.pdf')
# check for write permission
if(isTRUE(file.access(pdf_path, mode = 2)==0))
file.remove(pdf_path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.