Re: [Rd] [R] sequence()

2005-07-22 Thread Prof Brian Ripley
R-help is not the list for R development questions: you didn't want help did you? --> moved to R-devel. I do wonder why > sequence(c(0,-1)) [1] 1 0 1 0 -1 is considered useful. Given that the definition seems flawed and I could not find any uses of this function in any package my reaction

Re: [Rd] S4 Dispatching

2005-07-22 Thread John Chambers
Paul Roebuck wrote: > On Wed, 20 Jul 2005, John Chambers wrote: > > >>Paul Roebuck wrote: >> >> >>>Is it possible for S4 to (continue) dispatch to a class >>>created during dispatching? The code below doesn't work; >>>is this not possible or have I ommitted something? >> >>"doesn't work"? This i

Re: [Rd] [R] sequence()

2005-07-22 Thread Patrick Burns
I definitely agree that 'sequence' is not the right name for this functionality. The functionality is occasionally useful -- I've been asked for it several times. But I do wonder if it is basic enough that it should be in 'base'. The function could be rewritten to create the proper length of the

Re: [Rd] [R] sequence()

2005-07-22 Thread Gabor Grothendieck
On 7/22/05, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > R-help is not the list for R development questions: you didn't want help > did you? --> moved to R-devel. > > I do wonder why > > > sequence(c(0,-1)) > [1] 1 0 1 0 -1 > > is considered useful. > > Given that the definition seems fla

Re: [Rd] S4 Dispatching

2005-07-22 Thread Byron Ellis
I'm not sure I understand here... If I do, say... setClass("id","externalptr") where classes of that type come back from, effectively, C functions that do something like PROTECT(ret = NEW_OBJECT(MAKE_CLASS("id"))); R_SetExternalPtrAddr(ret,myid); UNPROTECT(1); return ret; am I just asking for