We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdf0e12 commit b5d412dCopy full SHA for b5d412d
R/utils-get_code_dependency.R
@@ -294,10 +294,7 @@ extract_occurrence <- function(pd) {
294
}
295
296
# For cases like 'eval(expression(c <- b + 2))' removes 'eval(expression('.
297
- sym_cond <- setdiff(
298
- sym_cond,
299
- sym_cond[sym_cond < min(assign_cond) & sym_cond %in% sym_fc_cond]
300
- )
+ sym_cond <- sym_cond[!(sym_cond < min(assign_cond) & sym_cond %in% sym_fc_cond)]
301
302
# If there was an assignment operation detect direction of it.
303
if (unique(x$text[assign_cond]) == "->") { # What if there are 2 assignments: e.g. a <- b -> c.
0 commit comments