Skip to contents

Sets the title of a hms_timer().

Usage

tmr_title(x) <- value

Arguments

x

A hms_timer().

value

A string of the title.

Value

A copy of the hms_timer() with the new title.

See also

Examples

tmr <- tmr_timer(title = "A title")
tmr_print(tmr)
#> [1] "00:00:00 [A title]"
tmr_title(tmr) <- "A different title"
tmr_print(tmr)
#> [1] "00:00:00 [A different title]"
tmr_title(tmr) <- NULL
tmr_print(tmr)
#> [1] "00:00:00"