• This parses an R version range string and returns a SemVer Range object. In contrast to just using new Range(range), this function also tries to normalize R's much free-er versioning scheme into valid SemVer ranges. You can always access the original range string via the str property on the returned object.

    Parameters

    • range: string

    Returns Range & { str: string }