R/shutdown.R

Defines functions shutdown

Documented in shutdown

shutdown <-
function(wait = 0) {
    Sys.sleep(wait)
    ifelse(.Platform$OS.type == "windows", shell("shutdown -s -t 0"),
        system("shutdown -h now"))
}

Try the fun package in your browser

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

fun documentation built on May 2, 2019, 6:06 p.m.