Retrieve example function from pythonR_examples

Environment containing pythonR example functions

get_py_example(example = "py_add")

pythonR_examples

Format

An object of class environment of length 3.

Arguments

example

The name of an example to load. See ls(pythonR_examples) for options.

Examples

if (FALSE) {
# Get list of available examples.
ls(pythonR_examples)


# View the functions
get("py_add", envir = pythonR_examples)
get("py_check_path", envir = pythonR_examples)
get("py_array", envir = pythonR_examples)

# Assign the function to use it
py_add <- get_py_example("py_add")
py_add(3, 4)
}