LazyData facility for packages which have data sets
but do not provide
LazyData. A single function is is included,
requireData, which is a drop-in replacement for
base::require, but carrying the additional functionality.
If a package is attached with
requireData, a check is made to see if a)
the package provides data and b) if the data sets are not made visible to
the user via
If both are the case, the package is attached to
the search path, and in addition a second entry to the search path is
made immediately behind the package containing
promises to load the data
sets should they be needed. This keeps data sets out of the
global environment (unless they are modified), making them visible
without occupying memory (unless they are needed).
requireData a second time on the same package has the
effect of flushing any data sets brought into memory and reinstating
them as promises.
Maintainer: Bill Venables <[email protected]>
1 2 3 4 5
requireData("mgcv") ## we assume has data sets but no LazyLoad .Search() ## show the augmented search path ## > ls("datasets:mgcv") ## "columb" "columb.polys"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.