Skip to content

Commit b5d412d

Browse files
m7praverissimo
andauthored
Update R/utils-get_code_dependency.R
Co-authored-by: André Veríssimo <[email protected]> Signed-off-by: Marcin <[email protected]>
1 parent bdf0e12 commit b5d412d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

R/utils-get_code_dependency.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,7 @@ extract_occurrence <- function(pd) {
294294
}
295295

296296
# 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-
)
297+
sym_cond <- sym_cond[!(sym_cond < min(assign_cond) & sym_cond %in% sym_fc_cond)]
301298

302299
# If there was an assignment operation detect direction of it.
303300
if (unique(x$text[assign_cond]) == "->") { # What if there are 2 assignments: e.g. a <- b -> c.

0 commit comments

Comments
 (0)