-
Notifications
You must be signed in to change notification settings - Fork 328
skip_on_oldrel() #571
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
Comments
I think we should generalise this to: skip_on_r_version("= 3.1")
skip_on_r_version(">= 3.1") etc |
skip_on_r_version("==", "3.1")
skip_on_r_version("<=", "3.1") etc. is easier to implement (no parsing needed) , and just as easy to write, and it is also easier to write programmatically. I think. |
Good idea. Going further, making it a functional would be even easier to implement, more flexible (it'd accept arbitrary comparison functions which could handle edge cases more easily) and more idiomatic for R: skip_on_r_version(`==`, "3.1")
skip_on_r_version(my_predicate, "3.1") |
@lionel- only a limited number of operators have been implemented for working with version objects, so I'd rather keep it simple for now |
What about just punting to a more general
The |
The advantage of a more specific method is a better message, but |
Comparing these options: skip_if(getRversion() == "3.1.0")
skip_on_r_version(`==`, "3.1.0") I don't think the more specific skip is any more appealing. |
Maybe the message would be nicer for the second one? |
To skip tests on old R releases:
The text was updated successfully, but these errors were encountered: