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

    Variable RRangeConst

    RRange: {
        formatAlternatives(this: void, ranges: readonly Range[]): string;
        intersect(
            this: void,
            ranges: readonly Range[],
        ): Range & { str: string } | undefined;
        name: "RRange";
        parse(this: void, range: string): Range & { str: string } | undefined;
        satisfies(this: void, version: string, range: string | Range): boolean;
        satisfiesAny(
            this: void,
            version: string,
            ranges: readonly Range[],
        ): boolean;
    } = ...

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

    Type Declaration

    • formatAlternatives: function
      • how a set of alternative requirements reads, in semver's a || b form (for reporting, not for parsing back)

        Parameters

        • this: void
        • ranges: readonly Range[]

        Returns string

    • intersect: function
      • The range every one of ranges allows (semver reads a space-separated list as a conjunction). undefined if none were given or the combination is unparseable; it may still be a range no version satisfies, which minVersion reports.

        Parameters

        • this: void
        • ranges: readonly Range[]

        Returns Range & { str: string } | undefined

    • Readonlyname: "RRange"
    • 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

    • satisfiesAny: function
      • whether version satisfies at least one of ranges (an empty list constrains nothing, so it does)

        Parameters

        • this: void
        • version: string
        • ranges: readonly Range[]

        Returns boolean