scaffolder (version 0.0.1)

scaffold_py_function_wrapper: Scaffold R wrappers for Python functions

Description

Scaffold R wrappers for Python functions

Usage

scaffold_py_function_wrapper(
  python_function,
  r_function = NULL,
  file_name = NULL
)

Arguments

python_function

Fully qualified name of Python function or class constructor (e.g. tf$nn$top_k)

r_function

Name of R function to generate (defaults to name of Python function if not specified)

file_name

The file name to write the generated wrapper function to. If NULL, the generated wrapper will only be printed out in the console.

Examples

Run this code
# NOT RUN {
library(scaffolder)
library(tensorflow)

scaffold_py_function_wrapper("tf$nn$top_k")
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace