Skip to content

Remove ability to pass offset through ... #580

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

Merged
merged 1 commit into from
Nov 1, 2021
Merged

Conversation

DavisVaughan
Copy link
Member

Follow up to #569

This PR removes the ability to specify offset through the ... of the converter functions. Instead, you have to supply it inline in the formula.

That said, while the .convert_*() functions seem to be working right, I think that offsets are pretty broken in parsnip right now. If you supply an + offset(col) in the formula of fit(), I don't think it ever gets to the model call. Similarly, I don't think the offset is ever used at prediction time. Fixing that is out of scope for this PR, but I added a few TODOs in places where I think this issue is relevant.

@DavisVaughan DavisVaughan requested a review from topepo October 20, 2021 21:11
@topepo topepo merged commit 3fd6a35 into main Nov 1, 2021
@topepo topepo deleted the feature/no-offsets branch November 1, 2021 22:08
@github-actions
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants