R/sleep.R

Defines functions sleep

Documented in sleep

#' Wait a Given Number of Seconds
#'
#' @param seconds time to wait, in seconds
#' @export
#' @return list with elements \code{data}, \code{success}, \code{message}
sleep <- function(seconds)
{
  Sys.sleep(seconds)

  create_result(message = paste("Back after waiting for", seconds, "seconds"))
}
KWB-R/fhpredict documentation built on Nov. 1, 2020, 5:58 a.m.