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? And what is the default if they are left unspecified? (*)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. -- Sincerely, Bj?rn-Helge Mevik
On 11/14/2007 7:01 AM, 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? > > And what is the default if they are left unspecified? > > > (*)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.I think that you shouldn't care about these things, and should accept the default for them unless one of those two pieces of advice applies to you. Let the package install code decide on what values to use. If you want to know the current defaults, look at the INSTALL script in R_HOME/bin, but don't expect them to stay the same as versions change. For example, lazy loading saves memory but may take extra time; the code chooses a tradeoff based on the amount of data involved, and the details of that choice could easily change. Duncan Murdoch
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 foo.tab).> (*)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, 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
On Nov 14, 2007 7:01 AM, Bj?rn-Helge Mevik <bhs2 at mevik.net> 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? > > And what is the default if they are left unspecified? > > > (*)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.There is some information and links regarding LazyLoad on the proto package home page, http://r-proto.googlecode.com, in the last section entitled Avoiding R Bugs in point #1.