python.get_function: Get Python function.

Description Usage Arguments Value Examples

Description

Get Python function.

Usage

1

Arguments

fn_name

Function name string.

Value

Wrapper around Python function.

Examples

1
2
3
4
5
python.exec("def test_fn(a = 3, b = 4):\n    return a * b")
test_fn <- python.get_function('test_fn')
test_fn(10, 20)
test_fn(a = 10)
test_fn(b = 10)

nonsleepr/PyR documentation built on May 23, 2019, 9:32 p.m.