semver_lt: Show whether a given semver is lesser than a baseline...

semver_ltR Documentation

Show whether a given semver is lesser than a baseline version.

Description

Show whether a given semver is lesser than a baseline version.

Usage

semver_lt(sv = get_default_odkc_version(), to = "1.5.0")

Arguments

sv

The semver to compare as character ("2023.5.1", "1.5.0", "1.5"), or numeric (1.5). The value is always parsed with semver::parse_semver(). Default: get_default_odkc_version().

to

The semver to compare to as string. Although semver can parse complete version strings, to is still parsed by parse_odkc_version() to ensure it is complete with major, minor, and patch version components.

Value

A boolean indicating whether the given semver sv is greater than the baseline semver to.

See Also

Other ru_settings: odata_svc_parse(), parse_odkc_version(), ru_settings(), ru_setup(), semver_gt(), yell_if_error(), yell_if_missing()

Examples

get_default_odkc_version() |> semver_lt("0.8.0")
"2024.1.1" |> semver_lt("2024.1.0")
"2024.1.1" |> semver_lt("2024.1.1")
"2024.1.1" |> semver_lt("2024.1.2")

dbca-wa/ruODK documentation built on March 20, 2024, 12:19 p.m.