Internal variable `args` is derived by capturing the names and values of the calling function. The interval `senv` variable is the SAGA-GIS library settings (generated by `saga_env`) and comes from the environment of when the dynamic function was generated.
create_function(lib, tool)
A character, text that is to be parsed into a function definition.
A character, name of SAGA-GIS library.
A character, name of SAGA-GIS tool.