Scaffold R wrappers for Python functions
scaffold_py_function_wrapper( python_function, r_function = NULL, file_name = NULL )
Fully qualified name of Python function or class constructor (e.g. tf$nn$top_k)
tf$nn$top_k
Name of R function to generate (defaults to name of Python function if not specified)
The file name to write the generated wrapper function to. If NULL, the generated wrapper will only be printed out in the console.
NULL
# 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