Description Usage Arguments Details Examples
Dependencies are installed into the package's bundle library. The library is also added to this session's .libPaths.
1 2 3 |
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") |
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.