A CallablePythonCode class of objects
CallablePythonCode.RdA CallablePythonCode class of objects
A CallablePythonCode class of objects
Super classes
teal.data::Callable -> teal.data::CallableFunction -> CallablePythonCode
Methods
Method new()
Create a new CallablePythonCode object
Usage
CallablePythonCode$new(fun, env = new.env(parent = parent.env(globalenv())))Method set_object()
For scripts and code that contain multiple objects, save the name
of the object that corresponds to the final dataset of interest.
This is required for running python scripts with reticulate.
Method run()
Execute Callable python code.
Arguments
args(
NULLor namedlist)
supplied for callable functions only, these are dynamic arguments passed toreticulate::py_run_stringorreticulate::py_run_file. Dynamic arguments are executed in this call and are not saved which means thatself$get_call()won't include them later.try(
logicalvalue)
whether perform function evaluation insidetryclause