Rev 59039 | Rev 77072 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/tools/man/add_datalist.Rd% Part of the R package, http://www.R-project.org% Copyright 2011 R Core Team% Distributed under GPL 2 or later\name{add_datalist}\alias{add_datalist}\title{Add a \file{datalist} File to a Package}\description{The \code{\link{data}()} command with no arguments lists all thedatasets available via \code{data} in attached packages, and to do so aper-package list is installed. Creating that list at install time canbe slow for packages with huge datasets, and can be expedited by asupplying \file{data/datalist} file.}\usage{add_datalist(pkgpath, force = FALSE)}\arguments{\item{pkgpath}{The path to a (source) package.}\item{force}{logical: can an existing \file{data/datalist} file beover-written?}}\details{\command{R CMD build} will call this function to add a data list topackages with 1MB or more of data.It is also helpful to give a \file{data/datalist} file in packageswhose datasets have many dependencies, including loading the packagesitself (and maybe others).}\seealso{\code{\link{data}}.The \sQuote{Writing R Extensions} manual.}\keyword{utilities}