Learn R Programming

Require (version 0.0.6)

parseGitHub: GitHub specific helpers

Description

install_githubV is a vectorized remotes::install_github. This will attempt to identify all dependencies of all supplied packages first, then load the packages in the correct order so that each of their dependencies are met before each is installed.

Usage

parseGitHub(pkgDT)

install_githubV(gitPkgNames, install_githubArgs = list(), ...)

Arguments

pkgDT

A character string with full package names or a data.table with at least 2 columns "Package" and "packageFullName".

gitPkgNames

Character vector of package to install from GitHub

install_githubArgs

Any arguments passed to install_github

...

Another way to pass arguments to install_github

Value

parseGitHub returns a data.table with added columns.

install_githubV returns a named character vector indicating packages successfully installed, unless the word "Failed" is returned, indicating installation failure. The names will be the full GitHub package name, as provided to gitPkgNames in the function call.

Details

parseGitHub turns the single character string representation into 3 or 4: Account, Repo, Branch, SubFolder.

Examples

Run this code
# NOT RUN {
  install_githubV(c("PredictiveEcology/Require", "PredictiveEcology/quickPlot"))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab