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

View source: R/py_func.R

py_funcR Documentation

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)

Arguments

f

An R function

Value

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


reticulate documentation built on Jan. 8, 2023, 1:09 a.m.