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.

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
#>                                     dplyr 
#>                                     FALSE 
#>                  PredictiveEcology/pemisc 
#>                                      TRUE 
#> PredictiveEcology/SpaDES.core@development 
#>                                      TRUE