Skip to contents

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

Usage

trimVersionNumber(pkgs)

Arguments

pkgs

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

Value

A character vector the length of pkgs, each element with its version specification (and any pak source prefix) removed.

Examples

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