[R] survreg.distributions() error

Thomas Lumley tlumley at u.washington.edu
Tue Jun 2 01:15:16 CEST 2009


On Sun, 31 May 2009, Nick Reich wrote:


> 1.  Can anyone verify that this is indeed a bug that's as simple as a
> typo in the package code?

It certainly looks like it.

> 2.  I tried cutting and pasting the code for survreg.fit() into a new
> file, making the edit myself and then re-sourcing the function code to
> overwrite the "bad" function.  But this isn't working.  Is there a
> simple way to test out a new version of this function?

fixInNamespace("survreg.fit","survival")

will let you edit it.

    -thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle




More information about the R-help mailing list