From bhs2 at mevik.net  Wed Nov 14 14:35:28 2007
From: bhs2 at mevik.net (=?iso-8859-1?q?Bj=F8rn-Helge_Mevik?=)
Date: Wed, 14 Nov 2007 14:35:28 +0100
Subject: [Rd] When to use LazyLoad, LazyData and ZipData?
In-Reply-To: <473AF0DB.9020801@stats.uwo.ca> (Duncan Murdoch's message of
	"Wed, 14 Nov 2007 07:58:03 -0500")
References: <m0prydkpda.fsf@bar.nemo-project.org>
	<473AF0DB.9020801@stats.uwo.ca>
Message-ID: <m0k5olkl0f.fsf@bar.nemo-project.org>

Duncan Murdoch wrote:

> On 11/14/2007 7:01 AM, Bj?rn-Helge Mevik wrote:
>
>> When should one specify LazyLoad, LazyData, and ZipData?
>
> 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.

Thank you.  That seems like a reasonable strategy. :-)

The only small `snag' I can see is how to document the usage of data
sets.  As I understand from `Writing R Extensions' (`The \usage entry
is always bar or (for packages which do not use lazy-loading of data)
data(bar).')  It is preferrable to use \usage{bar} when LazyData is
true, and \usage{data(bar)} otherwise.  Since data(bar) always works,
I guess the best strategy (when leaving LazyData to its default) is to
use \usage{data(bar)}.

> If you want to know the current defaults, look at the INSTALL script
> in R_HOME/bin,

Ah.  I should have thought about that. :-)

-- 
Bj?rn-Helge Mevik



[Rd] When to use LazyLoad, LazyData and ZipData?
=?iso-8859-1?q?Bj=F8rn-Helge_Mevik?=