Bundle a packrat project, for easy sharing.
bundle(
project = NULL,
file = NULL,
include.src = TRUE,
include.lib = FALSE,
include.bundles = TRUE,
include.vcs.history = FALSE,
overwrite = FALSE,
omit.cran.src = FALSE,
...
)
The path (invisibly) to the bundled project.
The project directory. Defaults to the currently activate
project. By default, the current project active under packratMode
is checked.
The path to write the bundle. By default, we write
the bundle to packrat/bundles/<project>-<date>.tar.gz
, with
<date>
as returned by Sys.date()
.
Include the packrat sources?
Include the packrat private library?
Include other packrat bundle tarballs
(as in packrat/bundles/
)?
Include version control history (ie, .git/
or .svn/
folders)?
Boolean; overwrite the file at file
if it already exists?
Boolean; when TRUE
, packages whose sources can
be retrieved from CRAN are excluded from the bundle.
Optional arguments passed to tar
.
The project is bundled as a gzipped tarball (.tar.gz
), which can
be unbundled either with packrat::unbundle
(which
restores the project as well), R's own utils::untar
, or
through most system tar
implementations.
The tar binary is selected using the same heuristic as restore
.