A CallablePythonCode
class of objects
CallablePythonCode.Rd
A 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
(
NULL
or namedlist
)
supplied for callable functions only, these are dynamic arguments passed toreticulate::py_run_string
orreticulate::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
(
logical
value)
whether perform function evaluation insidetry
clause