
Last chance! 50% off unlimited learning
Sale ends in
waitReturn(ask=TRUE)
TRUE
will generate the interruption, FALSE
will not.sink
ed (where it would hang the process).for (ii in 1:5) {
cat(ii,"")
waitReturn(ii %% 2 == 1)
}
Run the code above in your browser using DataLab