Learn R Programming

smvr (version 0.2.0)

check-component: Check if the smvr object has a specific component

Description

These functions check if the smvr object has a specific component.

  • is_pre_release(): Checks if the pre-release identifiers are present.

  • has_build_metadata(): Checks if the build metadata is present.

Usage

is_pre_release(x)

has_build_metadata(x)

Value

Indicates whether x has the specified component.

Arguments

x

A smvr object.

See Also

  • extract-component functions for extracting components from a smvr object.

Examples

Run this code
v <- parse_semver(c(
  "1.0.0", "2.0.0-alpha", "2.0.0-beta", "2.0.0-beta.2+build.123"
))
v

is_pre_release(v)
has_build_metadata(v)

Run the code above in your browser using DataLab