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.


rstudio/reticulate documentation built on Nov. 18, 2024, 12:03 p.m.