Skip to content

Commit 2a4a6cf

Browse files
m7prCopilot
andauthored
Update R/utils-get_code_dependency.R
Co-authored-by: Copilot <[email protected]> Signed-off-by: Marcin <[email protected]>
1 parent 98b7597 commit 2a4a6cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utils-get_code_dependency.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ move_functions_after_arrow <- function(ans, functions) {
352352
if (any(ans_pre == fun)) ans_pre <- ans_pre[-match(fun, ans_pre)]
353353
}
354354
after_arrow <- if (arrow_pos < length(ans)) {
355-
ans[arrow_pos + 1:length(ans)]
355+
ans[(arrow_pos + 1):length(ans)]
356356
}
357357
c(ans_pre, after_arrow)
358358
}

0 commit comments

Comments
 (0)