check_fitness_evaluator: General fitness_evaluator checker

Description Usage Arguments Details

View source: R/fitness.R

Description

Performs basic sanity checks on a fitness_evaluator and its candidate argument set.

Usage

1

Arguments

fun

The fitness_evaluator function

args

A single list of arguments for the fitness_evaluator that are reasonable. This will be used to call the evaluator on dummy data during the checks.

Details

Since fitness_evaluators are custom functions that are only used in deeply nested code and called with mechanisms like do.call, it makes debugging them really hard. This function performs a number of checks to ensure that the basic errors are flagged before the main loop is initiated. This function is also used extensively in the testing of the fitness_evaluators.


philliplab/yasss documentation built on Sept. 7, 2020, 3:28 p.m.