Learn R Programming

qryflow (version 0.2.0)

validate_qryflow_parser: Ensure correct parser structure

Description

This function checks that the passed object is a function and contains the arguments "x" and "..." - in that order. This is to help ensure users only register valid parsers.

Usage

validate_qryflow_parser(parser)

Value

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

Arguments

parser

object to check

See Also

validate_qryflow_handler() for the handler equivalent.

Examples

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

  # Parsing Code Goes Here

}
validate_qryflow_parser(custom_func)

Run the code above in your browser using DataLab