adapt test on interaction w/ parsnip re intercept #214
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This one is one with a larger backstory ✍️
But maybe the best way in is #210 - the crux here is that workflows added an intercept column (in the test because of the very explicit blueprint, in the issue based on the default to consult the parsnip encodings for the engine) which got treated as a regular predictor by the dot expansion in the model formula. This should not happen, this is what the issue captures.
parsnip's functionality for dealing with that intercept column removed it but because it had entered the terms for the
lm
,predict.lm()
expected it to be there and errored. That is what this test used to capture.Now parsnip removes the intercept before it enters the terms (tidymodels/parsnip#1033), hence
predict.lm()
does not fail anymore.I've adapted the test to try to reflect that. Happy to tweak it if it doesn't come across sufficiently. Alternatively, we could also remove the test since it's covered in extratests also.
It does add a dependency on dev parsnip. It was already in the
Remote:
section of the description but maybe that was leftover since the version requirement for parsnip was for prior the1.1.1
version. So maybe that dependency on the dev version is new?