validate_strategies function

Validate user specified strategies

Validate user specified strategies

Compares the user provided strategies to those that are required (the reference). Will throw an error if not all values of reference have been defined.

validate_strategies(strategies, reference)

Arguments

  • strategies: named list of strategies.
  • reference: list or character vector of strategies that need to be defined.

Returns

Will throw an error if there is an issue otherwise will return TRUE.