Skip to content
Prev 33909 / 398503 Next

combining mathematical notation and value substitution

Thomas Lumley <tlumley at u.washington.edu> writes:
...not to mention that lazy evaluation explicitly makes the order dependent
on the function body:

  f <- function(x,y) {x;y}
  f <- function(x,y) {y;x}

will produce the plots in different order when called as above. Notice
in particular that constructs like

  f(a<-b, a)

are playing with fire, unless you're really, really sure that the 1st
arg is evaluated before the 2nd.