powered by
waitReturn(q="",ask=TRUE)
TRUE
FALSE
sink
for (ii in 1:5) { cat(ii,"\n") waitReturn(ii %% 2 == 1) }
Run the code above in your browser using DataLab