Re: [R] own TAB expansion

2010-10-09 Thread Sebastian Gibb
Am Samstag, 9. Oktober 2010, 08:39:36 schrieb Deepayan Sarkar: > On Fri, Oct 8, 2010 at 6:19 AM, Sebastian Gibb wrote: > > Hello Duncan, > > > > thank for your advice, but it doesn't work like expected: > > > > setClass(Class="A", representation=representation(slotA="numeric", > > slotB="numeri

Re: [R] own TAB expansion

2010-10-08 Thread Deepayan Sarkar
On Fri, Oct 8, 2010 at 6:19 AM, Sebastian Gibb wrote: > Hello Duncan, > > thank for your advice, but it doesn't work like expected: > > setClass(Class="A", representation=representation(slotA="numeric", > slotB="numeric")); > setMethod("$", "A", function(x, name) {return(slot(x, name));}) > setGen

Re: [R] own TAB expansion

2010-10-08 Thread Sebastian Gibb
Hello Duncan, thank for your advice, but it doesn't work like expected: setClass(Class="A", representation=representation(slotA="numeric", slotB="numeric")); setMethod("$", "A", function(x, name) {return(slot(x, name));}) setGeneric(".DollarNames") setMethod(".DollarNames", signature(x="A"), fun

Re: [R] own TAB expansion

2010-10-08 Thread Duncan Murdoch
On 08/10/2010 7:22 AM, Sebastian Gibb wrote: Hello, how can I add expansion on R command line for own S4 classes? setClass(Class="A", representation=representation(slotA="numeric", slotB="numeric")); setMethod("$", "A", function(x, name) {return(slot(x, name));}) a <- new("A", slotA=1, slotB

[R] own TAB expansion

2010-10-08 Thread Sebastian Gibb
Hello, how can I add expansion on R command line for own S4 classes? setClass(Class="A", representation=representation(slotA="numeric", slotB="numeric")); setMethod("$", "A", function(x, name) {return(slot(x, name));}) a <- new("A", slotA=1, slotB=2) a$ > a$ should become: a$ > a$slotA a$s