orderVersion: Ordering Version Numbers

View source: R/utils.R

orderVersionR Documentation

Ordering Version Numbers

Description

Orders a vector of version numbers, in natural order.

Usage

orderVersion(x, ..., decreasing = FALSE)

sortVersion(x, ...)

Arguments

x

a character vector of version numbers

...

extra parameters passed to orderVersion and order

decreasing

a logical that indicates if the ordering should be decreasing

Value

A character vector.

Examples


v <- c('1.0', '1.03', '1.2')
order(v)
orderVersion(v)


sort(v)
sortVersion(v)

renozao/pkgmaker documentation built on May 3, 2023, 6:04 p.m.