R/message_sleep.R

Defines functions message_sleep

message_sleep <- function(sleep = 0, debug = FALSE) {
  if(debug) {
    cli_alert_info("--SLEEP TIME--")
  }
  if(sleep == "prompt") {
    invisible(readLines(n = 1L))
  } else {
    Sys.sleep(sleep)
  }
  invisible(NULL)
}

Try the rwarrior package in your browser

Any scripts or data that you put into this service are public.

rwarrior documentation built on Sept. 7, 2022, 9:06 a.m.