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
{rlang} name injection on LHS of := causes "object_name_linter"
#1926
Labels
false-positive
code that shouldn't lint, but does
Comments
psychelzh
added a commit
to psychelzh/preproc.iquizoo
that referenced
this issue
Mar 3, 2023
Perhaps see r-lib/lintr#1926 Signed-off-by: Liang Zhang <psychelzh@outlook.com>
psychelzh
added a commit
to psychelzh/preproc.iquizoo
that referenced
this issue
Mar 4, 2023
Perhaps see r-lib/lintr#1926 Signed-off-by: Liang Zhang <psychelzh@outlook.com>
NB: per That means this is in conflict with {data.table}'s DT[, "myPooRNAme_" := 1] That leaves us with a few options:
|
MichaelChirico
changed the title
Name injection causes
{rlang} name injection on LHS of := causes Aug 4, 2023
"object_name_linter"
"object_name_linter"
Since we also want to lint |
Meanwhile, is there a reasonable workaround? |
You could:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to this "name injection" rule, the following code is legal:
Created on 2023-03-02 with reprex v2.0.2
Session info
The text was updated successfully, but these errors were encountered: