From tlumley at u.washington.edu  Wed Oct  6 20:17:05 2004
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Wed Oct  6 20:17:25 2004
Subject: [Rd] Re: R2.0.0 bug in function vcov in library survival (PR#7266)
In-Reply-To: <Pine.LNX.4.44.0410061908380.4432-100000@gannet.stats>
References: <Pine.LNX.4.44.0410061908380.4432-100000@gannet.stats>
Message-ID: <Pine.A41.4.61.0410061113260.346816@homer06.u.washington.edu>

On Wed, 6 Oct 2004, Prof Brian Ripley wrote:

> On Wed, 6 Oct 2004, Thomas Lumley wrote:
>
>> No, they haven't been updated to cope with lazy loading (they are defined
>> in a top-level if statement to prevent conflicts in older versions of R).
>>
>> vcov.coxph is actually
>>      vcov.coxph<-function (object, ...) {
>>          rval<-object$var
>>          dimnames(rval)<-list(names(coef(object)),names(coef(object)))
>>          rval
>>      }
>> since object$var doesn't have dimnames.
>
> As Torsten has suggested, it looks like they were neither registered nor
> exported from the survival namespace, but the objects are in the
> namespace.  (Nothing to do with lazy-loading, then.)

True. I misconstrued the advice against top-level code in packages.

 	-thomas


[Rd] Re: R2.0.0 bug in function vcov in library survival (PR#7266)
Thomas Lumley