Tests whether each element is a dotted version string, optionally v-prefixed
and with a pre-release/build suffix: "1.4.0", "v2", "2.10.3",
"v1.0", "3.2.1-rc1". A bare integer is not a version (that is a count/id);
at least one dotted component or a v prefix is required.
See also
Other code detectors:
is_ca_postal_code(),
is_country_code(),
is_http_status(),
is_roman(),
is_uk_postcode(),
is_unix_time(),
is_us_state(),
is_zip_code()
Examples
is_version(c("1.4.0", "v2", "2019", "banana", NA))
#> [1] TRUE TRUE FALSE FALSE NA
#> TRUE TRUE FALSE FALSE NA