From ripley at stats.ox.ac.uk  Thu Jun 18 18:09:09 2009
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 18 Jun 2009 17:09:09 +0100 (BST)
Subject: [Rd] binding message from R CMD check
In-Reply-To: <200906181544.n5IFiMg29427@hsrnfs-101.mayo.edu>
References: <200906181544.n5IFiMg29427@hsrnfs-101.mayo.edu>
Message-ID: <alpine.LFD.2.00.0906181704350.5417@gannet.stats.ox.ac.uk>

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



[Rd] binding message from R CMD check
Prof Brian Ripley