-
Notifications
You must be signed in to change notification settings - Fork 1k
restrict negation in !with to unary -/! #3775
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3775 +/- ##
=======================================
Coverage 99.41% 99.41%
=======================================
Files 71 71
Lines 13225 13225
=======================================
Hits 13148 13148
Misses 77 77
Continue to review full report at Codecov.
|
| if (is.call(jsub) && deparse(jsub[[1L]], 500L, backtick=FALSE) %chin% c("!", "-")) { # TODO is deparse avoidable here? | ||
| # 2109 we should only match unary - | ||
| if (is.call(jsub) && deparse(jsub[[1L]], 500L, backtick=FALSE) %chin% c("!", "-") && length(jsub) == 2L) { # TODO is deparse avoidable here? | ||
| notj = TRUE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deparse(jsub[[1]]) == as.character(jsub)[[1]] afaik
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HughParsonage Yep - that works. Now I'm puzzled why the deparse was there to start with. Ah well, tests pass.
Closes #2109
Just as simple as Arun said 2 years ago 😅