powered by
The function pyFunction creates a new object of type pyFunction based on a given key.
pyFunction(key, regFinalizer = FALSE)
a string specifying the name of a Python method/function.
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.
# NOT RUN { if ( pyIsConnected() ){ pySum <- pyFunction("sum") pySum(1:3) } # }
Run the code above in your browser using DataLab