Re: [Rd] S4 Inheritance of environments

2010-04-26 Thread Christopher Brown
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

Re: [Rd] S4 Inheritance of environments

2010-04-25 Thread Duncan Murdoch
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

Re: [Rd] S4 Inheritance of environments

2010-04-25 Thread Henrik Bengtsson
On Sun, Apr 25, 2010 at 1:09 PM, Duncan Murdoch murdoch.dun...@gmail.com 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

Re: [Rd] S4 Inheritance of environments

2010-04-25 Thread John Chambers
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

[Rd] S4 Inheritance of environments

2010-04-24 Thread Christopher Brown
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