search for: to18561135

Displaying 1 result from an estimated 1 matches for "to18561135".

2009 Aug 20
2
Problem using findVar( ) in combination with R's lazy evaluation
...on is that it should print the contents of whatever is passed to the function f(x). But when executing the function, the result is: > f(10) <promise: 0x142db20> Ofcourse this is due to lazy-evaluation as I've also read in the thread http://www.nabble.com/confusion-about-evaluation.-to18561135.html#a18563086 here . To 'fix' it, I would need to do 'something' with 'x', so changing the function f() to: f <- function(x) { x = x .Call("envtest", environment()) } works as can be shown with: > f(10) [1] 10 ---------- My question on this subje...