1 2 3 4 5 6 7 8
# Expected output: # step 1 # step 2 # step 3 for (i in 1:3) { cat(sprintf("step %d\n", i)) }