Use RStudio addins to execute R functions interactively within RStudio.
See findAndReplaceAddin()
and insertInAddin()
for two examples of R functions that are exported.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.