The resulting string(s) will have only name (including github.com repository if it exists).

trimVersionNumber(pkgs)

Arguments

pkgs

A character string vector of packages with or without GitHub path or versions

See also

Examples

trimVersionNumber("PredictiveEcology/Require (<=0.0.1)")
#> [1] "PredictiveEcology/Require"