makeTerminator: Generate stopping condition.

View source: R/makeTerminator.R

makeTerminatorR Documentation

Generate stopping condition.

Description

Wrap a function within a stopping condition object.

Usage

makeTerminator(condition.fun, name, message)

Arguments

condition.fun

[function]
Function which takes a logger object log (see initLogger) and returns a single logical.

name

[character(1)]
Identifier for the stopping condition.

message

[character(1)]
Message which should be stored in the termination object, if the stopping condition is met.

Value

[ecr_terminator]


jakobbossek/ecr2 documentation built on Sept. 23, 2023, 12:33 p.m.