gaborcsardi, 29 days ago @_wurli That's not entirely true. for (i in 1:5) print(i) and if (TRUE) "foobar" etc. are fine. if (TRUE) "foo" else "bar" etc. is also fine. Basically, if the parser has a complete expression after reading a line, it evaluates it. This usually works out fine, and does what you'd expect.
@_wurli That's not entirely true.
for (i in 1:5) print(i)
and
if (TRUE) "foobar"
etc. are fine.
if (TRUE) "foo" else "bar"
etc. is also fine.
Basically, if the parser has a complete expression after reading a line, it evaluates it.
This usually works out fine, and does what you'd expect.