\HeaderA{lazyLoad}{Lazy Load a Database of R Objects}{lazyLoad}
\keyword{internal}{lazyLoad}
\begin{Description}\relax
Lazy load a database of \R{} objects.
\end{Description}
\begin{Usage}
\begin{verbatim}
lazyLoad(filebase, envir = parent.frame(), filter)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{filebase}] The file path to the database, with no extension.
\item[\code{envir}] The environment into which objects are loaded.
\item[\code{filter}] An optional function which when called on a a character
vector of object names returns a logical vector: only objects for
which this is true will be loaded.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This is the workhorse function called by the package loader to load
the code for a package from a database.  The database consists of two
binary files, \file{\var{filebase}.rdb} (the objects) and
\file{\var{filebase}.rdx} (an index).

The objects are not themselves loaded into \code{envir}: rather
promises are created that will load the object from the database on
first access. (See \code{\LinkA{delayedAssign}{delayedAssign}}.)
\end{Details}
\begin{Author}\relax
Luke Tierney
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{makeLazyLoading}{makeLazyLoading}}
\end{SeeAlso}

