This question comes from a range of other questions that all deal with essentially the same problem. For some strange reason, using a function within another function someti
Well there is no problem in what you posted:
/tmp$ cat joris.r #!/usr/bin/r -t some_function <- function(y) y^2 ff <- function(x){ y <- 4 some_function(y) # so we expect 16 } print(ff(3)) # 3 is ignored $ ./joris.r [1] 16 /tmp$
Could you restate and postan actual bug or misfeature?