From tlumley at u.washington.edu  Mon Feb  9 15:30:49 2009
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Mon, 9 Feb 2009 06:30:49 -0800 (PST)
Subject: [Rd] CMD check puzzle
In-Reply-To: <200902091349.n19DnsGr005055@rocky.mayo.edu>
Message-ID: <Pine.LNX.4.43.0902090630490.3821@hymn33.u.washington.edu>

On Mon, 9 Feb 2009, Terry Therneau wrote:

>  > tfit  <- aareg(Surv(time, status) ~ x, test1)
>  Error: could not find function "aareg"
>  Execution halted
>
> --------------
>  The manual page aareg.Rd has a call to the function in the examples and that
> runs ok, and aareg is in the NAMESPACE exports.
>
> I'm almost certainly missing something obvious - please point it out.
>

Based on the r-forge code it looks like you need library(survival) in R code in tests/.  It doesn't happen automatically like it does for examples.

       -thomas


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



[Rd] CMD check puzzle
Thomas Lumley