David Brahm <brahm at alum.mit.edu> writes: > Language differences: > - Scoping rules differ. In R, functions see the functions they're in. Try: > f1 <- function() {x <- 1; f2 <- function() print(x); f2()}; f1() It may be more accurate to say "the functions they're defined in". It's lexical scoping, not dynamic scoping.