Rev 50316 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/base/man/lazyload.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2009 R Core Development Team% Distributed under GPL 2 or later\name{lazyLoad}\alias{lazyLoad}\title{Lazy Load a Database of R Objects}\description{Internal function to lazy load a database of \R objects.}\usage{lazyLoad(filebase, envir = parent.frame(), filter)}\arguments{\item{filebase}{The file path to the database, with no extension.}\item{envir}{The environment into which objects are loaded.}\item{filter}{An optional function which when called on a a charactervector of object names returns a logical vector: only objects forwhich this is true will be loaded.}}\details{This is an internal function for use only by \R itself.This is the workhorse function called by the package loader to loadthe code for a package from a database. The database consists of twobinary files, \file{\var{filebase}.rdb} (the objects) and\file{\var{filebase}.rdx} (an index).The objects are not themselves loaded into \code{envir}: ratherpromises are created that will load the object from the database onfirst access. (See \code{\link{delayedAssign}}.)}\author{Luke Tierney}\seealso{\code{\link{makeLazyLoading}}}\keyword{internal}