Learn R Programming

qryflow (version 0.2.0)

validate_qryflow_handler: 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)

Value

Logical. Generates an error if the object does not pass all the criteria.

Arguments

handler

object to check

See Also

validate_qryflow_parser() for the parser equivalent.

Examples

Run this code
custom_func <- function(con, chunk, ...){

  # Parsing Code Goes Here

}

validate_qryflow_handler(custom_func)

Run the code above in your browser using DataLab