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

    Parameters

    • version: string

    Returns SemVer & { str: string }