The following is based on best practice documents mainly from Hadley Wickham but complemented with a few ideas. A particular point of confusion is naming in R which consists of mixture of camelcase or names with words separated by underscore. Since the latter is the standard in GNU and R is a GNU project we adhere in case of doubt to GNU best practices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.