View source: R/manage_procedure.R
manage_procedure | R Documentation |
Printing and timing utility for managing processes
manage_procedure(part = c("Start", "End"), ..., timer = NULL, verbose = TRUE) get_duration(timer)
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? |
For part = "Start"
, a proc_time object (i.e., a timer passable
to an eventual part = "End"
command); for part = "End"
,
invisible
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.