Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ver_before() and ver_after() #10

Open
ErdaradunGaztea opened this issue Aug 4, 2022 · 0 comments
Open

Implement ver_before() and ver_after() #10

ErdaradunGaztea opened this issue Aug 4, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ErdaradunGaztea
Copy link
Collaborator

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()).

@ErdaradunGaztea ErdaradunGaztea added the enhancement New feature or request label Aug 4, 2022
@ErdaradunGaztea ErdaradunGaztea self-assigned this Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant