[Rd] binding message from R CMD check

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Jun 18 18:09:09 CEST 2009


On Thu, 18 Jun 2009, Terry Therneau wrote:

> When I run R CMD check on the survival package I get one error message that I
> have not been able to figure out:
>
>    survfitCI: no visible binding for global variable 'n.nevent'
>
> I've examined the code and can't see the problem -- the variable in question
> appears several times.  Is there as way to find out EXACTLY what line it objects
> to?

No, as it examines the parsed code (and codetools predates srcref 
records).  But grep finds only one occurrence in survival, at

gannet% grep -F n.nevent *
survfitCI.S:			 n.event=unlist(n.nevent),

Is it a typo for n.event?

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list