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

Translations for namespaced functions must exist #1432

Merged
merged 2 commits into from
Jan 10, 2024
Merged

Conversation

hadley
Copy link
Member

@hadley hadley commented Dec 22, 2023

I'm not sure how this broke, but the code for handling this already exists in translate_sql(), so I'm not sure why we started doing some :: handling in partial_eval().

Fixes #1426

I'm not sure how this broke, but the code for handling this already exists in `translate_sql()`, so I'm not sure why we started doing some `::` handling in `partial_eval()`.

Fixes #1426
@hadley hadley requested a review from mgirlich December 22, 2023 20:51
@mgirlich
Copy link
Collaborator

We might also simply remove the compound calls logic in partial_eval_call(). At least no test failed when I removed it.

#Conflicts:
#	R/tidyeval.R
#	tests/testthat/test-tidyeval.R
@hadley
Copy link
Member Author

hadley commented Jan 10, 2024

Let's tackle that in a separate PR. For example, .env$bar() currently errors, but maybe it's more consistent for it to be equivalent to local(bar())? Discussion in #1117.

@hadley hadley merged commit 781d630 into main Jan 10, 2024
13 checks passed
@hadley hadley deleted the namespace-funs branch January 10, 2024 23:15
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.

Make namespaced functions error if no translation?
2 participants