R difference beteween setTimeout and sys.sleep code example Example: wait for some time in r Sys.sleep(time) # time in seconds