File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ copied = function(ans, l) {
1919}
2020notcopied = function(ans, l, how="left", unless=character()) {
2121 if (how %chin% unless) return(copied(ans, l)) ## used during looping tests for easier escape
22- if (how=="full") return( ## either side, left|right, notcopied is fine
23- all(addresses(l[[1L]]) %chin% addresses(ans)) || all(addresses(l[[length(l)]]) %chin% addresses(ans))
22+ if (how == "full") return( ## either side, left|right, notcopied is fine
23+ all(addresses(l[[1L]]) %chin% addresses(ans)) ||
24+ all(addresses(l[[length(l)]]) %chin% addresses(ans))
2425 )
25- all(addresses(if (how=="right") l[[length(l)]] else l[[1L]]) %chin% addresses(ans))
26+ idx = if (how == "right") length(l) else 1L
27+ all(addresses(l[[idx]]) %chin% addresses(ans))
2628}
2729
2830# internal helpers
You can’t perform that action at this time.
0 commit comments