validate_qryflow_handler {qryflow} | R Documentation |
Ensure correct handler structure
Description
This function checks that the passed object is a function and contains the arguments "chunk", "con, and "..." - in that order. This is to help ensure users only register valid handlers.
Usage
validate_qryflow_handler(handler)
Arguments
handler |
object to check |
Value
Logical. Generates an error if the object does not pass all the criteria.
See Also
validate_qryflow_parser()
for the parser equivalent.
Examples
custom_func <- function(chunk, con, ...){
# Parsing Code Goes Here
}
validate_qryflow_handler(custom_func)
[Package qryflow version 0.1.0 Index]