The R Project SVN R

Rev

Rev 30362 | Rev 43623 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30362 Rev 30986
Line 10... Line 10...
10
  \item{lib.loc}{library trees, as in \code{library}}
10
  \item{lib.loc}{library trees, as in \code{library}}
11
  \item{keep.source}{logical; should sources be kept when saving from source}
11
  \item{keep.source}{logical; should sources be kept when saving from source}
12
  \item{compress}{logical; whether to compress entries on the database.}
12
  \item{compress}{logical; whether to compress entries on the database.}
13
}
13
}
14
\description{
14
\description{
15
  Tools for lazy loading of packages from a database.
15
  Tools for Lazy Loading of Packages from a Database.
16
}
16
}
17
\details{
17
\details{
18
  This package provides tools to set up packages for lazy loading from a
18
  A tool to set up packages for lazy loading from a database.  For
19
  database.  For packages other than base you can use
19
  packages other than base you can use \code{makeLazyLoading(package)}
20
  \code{makeLazyLoading(package)} to convert them to use lazy loading.
-
 
21
 
-
 
22
  For base you need to start R with no packages loaded,  e.g. by setting
-
 
23
  \code{R_DEFAULT_PACKAGES} to \code{NULL}, and then source
-
 
24
  \code{makebasedb.R}; this file is provided in the package diractory.
-
 
25
  This builds a database.  Once the database has been built, use
-
 
26
  makeLazyLoading("base") to convert base to use lazy loading.
20
  to convert them to use lazy loading.
27
 
-
 
28
  A simple \code{make} seems sufficient to undo this for base and base
-
 
29
  packages other than \code{methods} and perhaps \code{mle}.  For
-
 
30
  \code{methods} (and presumably others created with \code{--save}) it
-
 
31
  appears that you need to remove \code{methods/R/methods} and then use
-
 
32
  \code{make}.  You may also need more radical action for recommended
-
 
33
  packages.
-
 
34
}
21
}
35
\examples{
22
\examples{
36
  # set up package "base" for lazy loading (must have no packages loaded)
-
 
37
  # this will by default have already been done
-
 
38
  \dontrun{
-
 
39
    source(file.path(.find.package("tools"),"makebasedb.R"))
-
 
40
    tools:::makeLazyLoading("base")
-
 
41
  }
-
 
42
 
-
 
43
  # set up package "splines" for lazy loading
23
  # set up package "splines" for lazy loading -- already done
44
  \dontrun{
24
  \dontrun{
45
    tools:::makeLazyLoading("splines")
25
    tools:::makeLazyLoading("splines")
46
  }
26
  }
47
}
27
}
48
\keyword{utilities}
28
\keyword{utilities}