cluster_bundle_packages: Build a zip file of bundled packages

View source: R/cluster_bundle_packages.R

cluster_bundle_packagesR Documentation

Build a zip file of bundled packages

Description

To use this file, unpack it. It contains a top-level folder called packages. To install a package from this bundle, run install.packages('mypackagename', repos='file:packages', type='source')

Usage

cluster_bundle_packages(packages = "mda.streams",
  github = "USGS-R/mda.streams@develop",
  bundlefile = "./cluster_packages.zip", pkgdir = "temp/pkgs",
  repos = union(getOption("repos"), "https://owi.usgs.gov/R"))

Arguments

packages

character. the package or packages whose dependencies (and the packages themselves) should be obtained. at least for now, all packages and dependencies should have an up-to-date list of dependencies on CRAN or GRAN. It's OK if the GitHub code is ahead of CRAN/GRAN as long as the dependencies list hasn't changed

github

character vector of GitHub references (as in link[github]{install_github}) for packages to acquire from GitHub rather than CRAN/GRAN

bundlefile

file.path to save the bundled packages

pkgdir

directory path where the downloaded and written packages should be saved

repos

character vector of repositories with info on the package dependencies


USGS-R/mda.streams documentation built on June 3, 2023, 8:43 a.m.