py_function_wrapper | R Documentation |
Scaffold R wrappers for Python functions
py_function_wrapper(python_function, r_prefix = NULL, r_function = NULL)
py_function_docs(python_function)
python_function |
Fully qualified name of Python function or class
constructor (e.g. |
r_prefix |
Prefix to add to generated R function name |
r_function |
Name of R function to generate (defaults to name of Python function if not specified) |
The generated wrapper will often require additional editing (e.g. to
convert Python list literals in the docs to R lists, to massage R numeric
values to Python integers via as.integer
where required, etc.) so is
really intended as an starting point for an R wrapper rather than a wrapper
that can be used without modification.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.