Create a .Rprofile which creates a local library, and then activates it (if R is being used interactively).
1 | create_.Rprofile(path = NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.