update_package: Update locally downloaded package(s)

Description Usage Arguments Examples

View source: R/package_version_control.R

Description

Update one or many packages in a single, local folder to ease version control when working on the cluster or elsewhere remotely. Will only update the packages that are determined to be out of date to avoid wasting time re-downloading packages that are already current.

Usage

1
update_package(package, folder, github_repo = NA)

Arguments

package

Name of the package as a string

folder

Folder (directory) where all the packages are stored

github_repo

Specifies the Github repo the package is hosted at. Defaults to NA for packages hosted on the CRAN

Examples

1
2
3
4
5
6
7
folder <- "H:/packages"

update_package("data.table", folder)
update_package("ihme", folder = folder, github_repo = "ShadeWilson/ihme")

some_packages <- packages[5:8]
update_package_all(some_packages, folder)

ShadeWilson/ihme documentation built on May 20, 2019, 8:47 a.m.