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

Thomas Lumley tlumley at u.washington.edu
Wed Oct 6 20:17:05 CEST 2004


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



More information about the R-devel mailing list