manage_procedure {PAutilities} | R Documentation |
Printing and timing utility for managing processes
Description
Printing and timing utility for managing processes
Usage
manage_procedure(part = c("Start", "End"), ..., timer = NULL, verbose = TRUE)
get_duration(timer)
Arguments
part |
character scalar, either |
... |
character strings to print. Default messages will print if no arguments are provided. |
timer |
a proc_time object. Required for |
verbose |
logical. Print to console? |
Value
For part = "Start"
, a proc_time object (i.e., a timer passable
to an eventual part = "End"
command); for part = "End"
,
invisible
Examples
manage_procedure("Start", "String will be printed\n")
timer <- manage_procedure(
"Start", "Printing a string is optional", verbose = FALSE
)
## Default starting message
manage_procedure("Start")
## Default ending message
manage_procedure("End", timer = timer)
## Other examples
get_duration(timer)
manage_procedure("End", "Custom ending message")
[Package PAutilities version 1.2.1 Index]