R: “while” loops

R has regular while loops:

while (condition) {

Note that if you try to get help about while you get an error:

help(while)

Error: unexpected ‘)’ in “help(while)”

One comment

  1. ‘while’ is a special keyword in R, so you need to use help('while')