Skip to content
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

Soften rules for interpolating values #1466

Merged
merged 3 commits into from
Feb 28, 2024
Merged

Soften rules for interpolating values #1466

merged 3 commits into from
Feb 28, 2024

Conversation

hadley
Copy link
Member

@hadley hadley commented Feb 22, 2024

Partially reverts #1430. See bcgov/bcdata#338 for details. If we do this again in the future, I think we have to do argument checking in individual translations. That's a lot of work but allows a whole suite of potentially useful translations for more complex R objects.

Fixes #1465

Partially reverts #1368. See bcgov/bcdata#338 for details. If we do this again in the future, I think we have to do argument checking in individual translations. That's a lot of work but allows a whole suite of potentially useful translations for more complex R objects.
@hadley hadley requested a review from mgirlich February 22, 2024 17:53
@hadley
Copy link
Member Author

hadley commented Feb 22, 2024

Doesn't help enough with bcdata because the data frame case still causes errors might need to rethink this through again as there definitely seem to be some advantages to the escape based approach.

But with more informative errors
@hadley
Copy link
Member Author

hadley commented Feb 23, 2024

Ok, now fully reverted to the previous approach, but provided a better error in the default case, and ensured that $ works with both local and database variables.

@mgirlich
Copy link
Collaborator

Seems reasonable to roll back this change. It would be nice to be a bit stricter but considering the breakages of code it's probably not really worth it for now.

@hadley hadley merged commit edbb874 into main Feb 28, 2024
13 checks passed
@hadley hadley deleted the soften-interpolation branch February 28, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Research stricter interpolation revdep failures
2 participants