Skip to content
Prev 31157 / 63421 Next

overwriting '<-' and infinite recursions

I wonder if you might be able to make use of R's "active bindings."  
These enable you to set things up so that a user definable function is 
called when an assignment is made or when a value is accessed.  It's 
sort of like overriding assignment for a particular variable, but you 
don't need to mess with the definition of assignment.

Do
 > apropos("binding")
to see the related functions.  The help page for makeActiveBinding has a 
simple example.

-- Tony Plte
Yi Zhang wrote: