On Fri, Jan 23, 2009 at 5:28 PM, wrote:
> On Fri, 23 Jan 2009, Yi Zhang wrote:
>
>> Thanks, Luke. I would certainly be very happy to see any non-intrusive
>> solution. The problem I'm dealing with is: I'm creating a new class
>> which references some external resource (file or database) and I wan
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 me
On Fri, 23 Jan 2009, Yi Zhang wrote:
Thanks, Luke. I would certainly be very happy to see any non-intrusive
solution. The problem I'm dealing with is: I'm creating a new class
which references some external resource (file or database) and I want
to make the reference counting work. An example (-
Thanks, Luke. I would certainly be very happy to see any non-intrusive
solution. The problem I'm dealing with is: I'm creating a new class
which references some external resource (file or database) and I want
to make the reference counting work. An example (-> means references):
Initially we have s
While it _may_ be possible to make this work in current R (I don't
know if it is) this is a Really Bad Idea as it will affect every other
piece of R code run on the system. It also may not work at all in
future versions of R (assignment is sufficiently core functionality
that it may not be impleme
Hello all,
I'm having a problem when overwriting the '<-' function and was told
I'd better post it here for help. The reason why I need to overwrite
it is complicated and not easy to tell in a few words; but this seems
the only clean option other than hacking R's core source code. My code
looks li