Learn R Programming

reticulate (version 1.37.0)

py_func: Wrap an R function in a Python function with the same signature.

Description

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.

Usage

py_func(f)

Value

A Python function that calls the R function f with the same signature.

Arguments

f

An R function