Learn R Programming

rbundler (version 0.3.7)

bundle: Bundles a package and it's dependencies into a library.

Description

Dependencies are installed into the package's bundle library. The library is also added to this session's .libPaths.

Usage

bundle(pkg = ".", bundle_path = file.path(pkg, ".Rbundle"), overwrite = FALSE, dependencies = c("Depends", "Imports", "LinkingTo", "Suggests"))

Arguments

pkg
package description, can be path or package name.
bundle_path
path to the bundle. Defaults to '.Rbundle' under the package directory
overwrite
whether to delete the existing bundle library and re-install all packages. This can be necessary when upgrading or downgrading package dependencies. Defaults to FALSE
dependencies
which package dependencies to install. Defaults to c("Depends", "Imports", "LinkingTo", "Suggests")

Details

Note that repository and pkgType options are temporarily overridden, according to the user's options, and set back to their previous values after bundle completes.

Examples

Run this code
## Not run: 
# # Run bundle in the current path:
# bundle()
# # Check for the new `.Rbundle` entry in `.libPaths`:
# .libPaths()
# 
# lib <- file.path(tempdir(), 'my_bundle_lib')
# # Run bundle in the current path, overriding the target library:
# bundle('.', lib)
# # Check for the new entry in `.libPaths`:
# .libPaths()
# ## End(Not run)

Run the code above in your browser using DataLab