-
Notifications
You must be signed in to change notification settings - Fork 6
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
Version aware construction #188
Comments
As a first approximation, can we target the newest package version and issue a warning/error if it doesn't match what's installed? |
That would be a lot of warnings, most people don't have everything up to date. And it's a legit use case to construct objects from an old RDS file with a new R, or the opposite, so I don't think failing is appropriate, the construction is succesful, just not necessarily idiomatic . But maybe as part of #169, and as part of construct_issues()
|
We have an example for citFooter and citHeader now |
cc @krlmlr
I knew it would come but I didn't expect it to come so fast!
By essence {constructive} is implementation dependent, this means that if an object is implemented differently with a different version of a package, or of base R, we need to construct it differently.
This means our tests also need to be version aware.
Here the workflows already show problems due to changes in base R 4.3 https://cran.r-project.org/doc/manuals/r-release/NEWS.html
We have things like :
The good news is that constructive always succeeds to construct the object, in the case of mts the idiomatic form is even still correct, there is nothing to change.
I think R versions and package versions might be stored into options, and we default on whatever is installed. So we can simulate a version, and don't clutter the api.
This issue is about settling on a general approach, other issues will address the quick fixes
The text was updated successfully, but these errors were encountered: