如何使用变量的当前值构造函数?
这是一个例子:
x <- 2
f <- function() { return(x) }
x <- 3
f() # evaluates to 3 as expected, but I'd like it to evaluate to 2.
如何使用变量的当前值构造函数?
这是一个例子:
x <- 2
f <- function() { return(x) }
x <- 3
f() # evaluates to 3 as expected, but I'd like it to evaluate to 2.