[Rd] Objects created by more than one data call?
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue May 21 07:10:47 CEST 2013
On 21/05/2013 00:12, Spencer Graves wrote:
> Hello, All:
> If I use LazyData with the Ecdat package on R-Forge, "R CMD
> check" reports "no visible binding for global variable
> 'nonEnglishNames'", where 'nonEnglishNames' is a dataset in Ecdat used
> as the default argument for a function. With LazyData, that NOTE
> disappears. However, then I get, "Warning: objects 'Hstarts',
> 'Hstarts', 'MedExp' are created by more than one data call".
> What do you suggest I do to fix this problem?
Not create the objects in more than one data() call.
Check what each of your data() calls produces.
> Spencer Graves
> > sessionInfo()
> R version 3.0.0 (2013-04-03)
> Platform: i386-w64-mingw32/i386 (32-bit)
>  LC_COLLATE=English_United States.1252
>  LC_CTYPE=English_United States.1252
>  LC_MONETARY=English_United States.1252
>  LC_NUMERIC=C
>  LC_TIME=English_United States.1252
> attached base packages:
>  stats graphics grDevices utils datasets methods base
> other attached packages:
>  Ecdat_0.2-3
> loaded via a namespace (and not attached):
>  tools_3.0.0
> R-devel at r-project.org mailing list
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