@eagleoutice/flowr - v2.13.1
    Preparing search index...

    Variable RRangeConst

    RRange: {
        parse(this: void, range: string): Range & { str: string } | undefined;
        satisfies(this: void, version: string, range: string | Range): boolean;
    } = ...

    Helpers for R package version ranges (DESCRIPTION constraints like >= 0.4-9).

    Type Declaration

    • parse: function
      • Parse an R version range string into a Range, normalizing R's freer scheme. The original range string is available via .str.

        This never throws: an unparseable constraint (e.g. >= abc, or a git/URL "version" from a lockfile) yields undefined rather than aborting the caller, so a malformed constraint is detectable and simply contributes no version bound. Parsing is attempted first verbatim, then after normalizing R's scheme to SemVer.

        Parameters

        • this: void
        • range: string

        Returns Range & { str: string } | undefined

    • satisfies: function
      • Whether an R version string satisfies a range constraint, normalizing R's freer scheme on both sides. range may be a parsed Range or a raw constraint string. Returns false if either is unparseable (never throws), so a malformed version/constraint simply does not match.

        Parameters

        • this: void
        • version: string
        • range: string | Range

        Returns boolean