Thanks Roger, Duncan, Henrik and John:
First, Roger. Yes this works as expected:
inherits( inEnv, 'environment' )
Thanks for pointing that out.
Duncan,
I maintain the hash packages, which provides perl-hash / python-dictionary
wrapper around the environment. A very early implementation di
In addition to Duncan Murdoch's explanation, this is discussed in the
documentation for "Classes" (briefly):
.
Extending a basic type this way allows objects to use old-style code for
the corresponding type as well as S4 methods. Any basic type can be used
for .Data, but a few types are tr
On Sun, Apr 25, 2010 at 1:09 PM, Duncan Murdoch
wrote:
> On 24/04/2010 1:15 PM, Christopher Brown wrote:
>>
>> I looked through the documentation and the mailing lists and could not
>> find an answer to this. My apologies if it has already been answered.
>> If it has, a pointer to the relevant d
On 24/04/2010 1:15 PM, Christopher Brown wrote:
I looked through the documentation and the mailing lists and could not
find an answer to this. My apologies if it has already been answered.
If it has, a pointer to the relevant discussion would be greatly
appreciated.
Environments are unusua
I think using 'is(inEnv, "environment")' produces the answer you
expect. Can't explain the other anomalies though.
-roger
On Sat, Apr 24, 2010 at 1:15 PM, Christopher Brown
wrote:
> I looked through the documentation and the mailing lists and could not
> find an answer to this. My apologies if
I looked through the documentation and the mailing lists and could not
find an answer to this. My apologies if it has already been answered.
If it has, a pointer to the relevant discussion would be greatly
appreciated.
Creating S4 classes containing environments exhibits unexpected
behavior/feat