mutator_checks_general: General mutation checker

Description Usage Arguments Details

View source: R/mutator_general.R

Description

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

Usage

1

Arguments

fun

The mutator function

args

A list of arguments with which the mutator such run 'normally'. i.e. a per base mutation rate between 0 the mutator on dummy data during the checks.

Details

Since mutators 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.


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