I would like to define a function using symbols, but freeze the symbols
at their current values at the time of definition. Both symbols
referring to the global scope and symbols referring to arguments are at
issue. Consider this (R 2.4.0):
k1 - 5
k
[1] 100
a - function(z) function() z+k
a1 -
See ?force
a - function(z) {
force(k)
function() z+k
}
On 2/16/07, Ross Boylan [EMAIL PROTECTED] wrote:
I would like to define a function using symbols, but freeze the symbols
at their current values at the time of definition. Both symbols
referring to the global scope and