Re: [Rd] binding message from R CMD check

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu, 18 Jun 2009 17:09:09 +0100 (BST)

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

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu 18 Jun 2009 - 16:42:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 18 Jun 2009 - 21:32:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive