Skip to content
Prev 47281 / 63424 Next

Depending/Importing data only packages

On 13-12-07 12:19 PM, G?bor Cs?rdi wrote:
HW> Because I want someone who downloads the package to be able to run
HW> the examples without having to take additional action.
HW>
HW> Hadley

I went through this myself, including thinking it was a nuisance for 
users to need to attach other packages to run examples. In the end I 
decided it is not so bad to be explicit about what package the example 
data comes from, so illustrate it in the examples. Users may not always 
want this data, and other packages that build on yours probably do not 
want it.

Even in the Bayesian inference case pointed out by G?bor, I am not 
convinced. It means the prior knowledge base cannot be exchanged for 
another one. The package would be more general if it allowed the 
possibility of attaching a different database of prior information. But 
this is clearly a more important case, since the code probably does not 
work without some database. (There are a few other situations where 
something like "RequireOneOf:" would be useful.)

Paul