-
Notifications
You must be signed in to change notification settings - Fork 187
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
R version compatibility linter #506
Comments
Would you extend this to new arguments as well? That would make it a lot harder but could have helped e.g. in #546 (I had tried |
Certainly we could extend this to arguments as well. There are different levels of incompatibility across versions.
I think there are certainly some limitations we could not handle well (e.g. case 1, 2, 3). |
For package developers, it would be quite helpful to know if the code is compatible with the declared R version.
For example, if one uses
trimws(whitespace=)
, then it is only compatible with R >= 3.6.0. However, developers using R >= 3.6.0 might not be aware of this until some user or CI using R < 3.6.0 complains.I don't know a simple way to find how compatible the functions I use in package development are unless I carefully go through the R News, R News 3.x, etc.
I'm wondering if there's a way to make this process work in a more automatic manner, e.g. create a linter that checks the usage of functions are compatible with declared version requirement? Or suggest the use of
backport
instead?The text was updated successfully, but these errors were encountered: