This function could wrap an R function in a Python function with the same signature. Note that the signature of the R function must not contain esoteric Python-incompatible constructs.
An R function
A Python function that calls the R function
f with the same signature.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.