Skip to content

Implement ver_before() and ver_after() #10

Description

@ErdaradunGaztea

These functions would take a version code and a vector of those and return the previous or the next version code than the target one. Like that:

ver_before("1.4.0", c("1.3.1", "1.5.0", "1.4.0", "1.3.2"))
# [1] "1.3.2"

In general, this would work like applying ver_latest() on versions that are ver_is_older() (and analogously for ver_after()).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions