[Rd] promptData still creates 'data(...)' in R 2.0.0
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Oct 12 19:47:14 CEST 2004
This is deliberate.
Datasets can only be used directly for packages to be installed with
`LazyData: Yes', and that is not known when prompt() is called.
Allowing direct use of datasets is a convenience that the avantgarde
packages have adopted, but there can be good reasons not to go in the
direction for individual packages (name clashes being one).
Some people have kept data(foo) in their documentation to allow their
package to be still used with R 1.9.x (or even earlier).
On Tue, 12 Oct 2004 kwright at eskimo.com wrote:
> Not necessarily a bug report, but might be nice to change.
>
> I'm using R 2.0.0 on Windows 2000.
>
> The promptData function creates a .Rd file in which the 'usage' section is:
>
> \usage{data(<dataset>)}
>
> I've looked at several of the help files for various data sets. It looks
> like the use of 'data' is being reduced and so it might be more
> appropriate for promptData to create this:
>
> \useage{<dataset>}
--
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