The resulting string(s) will have only name (including github.com repository if it exists).
trimVersionNumber(pkgs)
pkgs | A character string vector of packages with or without GitHub path or versions |
---|
trimVersionNumber("PredictiveEcology/Require (<=0.0.1)")#> [1] "PredictiveEcology/Require"