R/suspend.R

Defines functions suspend_console

Documented in suspend_console

suspend_console <- function(){

   # My first approach to suspending the console
   # was to call Sys.sleep with .Machine$integer.max, however
   # this fails on windows because its implementating causes
   # overflow.

   # So we sleep for a day, and then loop.
   allday <- 24*60*60
   while(TRUE) Sys.sleep(allday)
}

Try the Rook package in your browser

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

Rook documentation built on Nov. 10, 2022, 6:13 p.m.