UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

20 lines (19 loc) 870 B
import { Range, SemVer } from 'semver'; /** * 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. */ export declare function parseRVersion(version: string): SemVer & { str: string; }; /** * 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. */ export declare function parseRRange(range: string): Range & { str: string; };