check-component {smvr}R Documentation

Check if the smvr object has a specific component

Description

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

Usage

is_pre_release(x)

has_build_metadata(x)

Arguments

x

A smvr object.

Value

Indicates whether x has the specified component.

See Also

Examples

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)

[Package smvr version 0.2.0 Index]