Class to terminate the tuning either after the complete process took a number of seconds on the clock or a fixed time point has been reached (as reported by Sys.time()).

Format

R6::R6Class object inheriting from Terminator.

Construction

TerminatorClockTime$new()
term("clock_time")

Parameters

  • secs :: numeric(1)
    Maximum allowed time, in seconds, default is 100. Mutually exclusive with argument stop_time.

  • stop_time :: POSIXct(1)
    Terminator stops after this point in time. Mutually exclusive with argument secs.

See also

Examples

term("clock_time", secs = 1800)
#> <TerminatorClockTime> #> * Parameters: secs=1800
stop_time = as.POSIXct("2030-01-01 00:00:00") term("clock_time", stop_time = stop_time)
#> <TerminatorClockTime> #> * Parameters: stop_time=<POSIXct>