Description Usage Arguments Details Examples
The function pyFunction creates a new object of type pyFunction based on a given key.
1 | pyFunction(key, regFinalizer = FALSE)
|
key |
a string specifying the name of a Python method/function. |
regFinalizer |
a logical indicating if a finalizer should be be registered, the default value is FALSE. |
The function pyFunction makes it easy to create interfaces to Python functions.
1 2 3 4 | if ( pyIsConnected() ){
pySum <- pyFunction("sum")
pySum(1:3)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.