Cleans a character vector of non-package name related information (e.g., version)
Usage
extractPkgName(pkgs, filenames)
extractVersionNumber(pkgs, filenames)
extractInequality(pkgs)
extractPkgGitHub(pkgs)
Examples
extractPkgName("Require (>=0.0.1)")
#> [1] "Require"
extractVersionNumber(c(
"Require (<=0.0.1)",
"PredictiveEcology/Require@development (<=0.0.4)"
))
#> [1] "0.0.1" "0.0.4"
extractInequality("Require (<=0.0.1)")
#> [1] "<="
extractPkgGitHub("PredictiveEcology/Require")
#> [1] "Require"