Re: [Rd] When to use LazyLoad, LazyData and ZipData?

From: Prof Brian Ripley <>
Date: Wed, 14 Nov 2007 12:58:47 +0000 (GMT)

On Wed, 14 Nov 2007, Bjørn-Helge Mevik wrote:

> Dear developeRs,
> I've searched the documentation, FAQ, and mailing lists, but haven't
> found the answer(*) to the following:
> When should one specify LazyLoad, LazyData, and ZipData?

Preferably always, and I would suggest all should be 'yes' if your package will work with them.

> And what is the default if they are left unspecified?

It varies by R version and platform. But as a guide

LazyLoad: yes for all but small packages (those with less than

   25Kb of R code)
LazyData: no
ZipData: yes on Windows if there is more than 100Kb of data and no

   duplicate namestems (e.g. foo.R and

> (*)Except that
> 1) If the package you are writing uses the methods package, specify
> LazyLoad: yes, and
> 2) The optional ZipData field controls whether the automatic Windows
> build will zip up the data directory or no: set this to no if your
> package will not work with a zipped data directory.

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list

Received on Wed 14 Nov 2007 - 13:00:44 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 15 Nov 2007 - 11:30:18 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.