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

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Thu 07 Oct 2004 - 04:17:05 EST

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



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu Oct 07 05:01:34 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:45:20 EST