isGitHubPkg: Check whether a package is one installed from GitHub

isGitHubPkgR Documentation

Check whether a package is one installed from GitHub

Description

Determines whether a string that may correspond to a package name (e.g., repo/package@branch), could be a package installed from GitHub. This is determined solely by the presence of a / in the string. See example below.

Usage

isGitHubPkg(x)

Arguments

x

character vector of package names

Value

a named logical vector

Examples

pkgs <- c("dplyr", "PredictiveEcology/pemisc", "PredictiveEcology/SpaDES.core@development")
isGitHubPkg(pkgs) ## FALSE TRUE TRUE

PredictiveEcology/pemisc documentation built on Sept. 19, 2022, 7 p.m.