Skip to content

Commit dc8ee82

Browse files
committed
changes after @averissimo comments
1 parent 9dfc3e7 commit dc8ee82

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

R/utils-get_code_dependency.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ extract_calls <- function(pd) {
106106
calls <- Filter(function(call) !(nrow(call) == 1 && call$token == "';'"), calls)
107107
calls <- Filter(Negate(is.null), calls)
108108
calls <- fix_shifted_comments(calls)
109-
calls <- remove_dt_assign(calls)
109+
calls <- remove_custom_assign(calls)
110110
fix_arrows(calls)
111111
}
112112

@@ -145,7 +145,9 @@ fix_shifted_comments <- function(calls) {
145145
Filter(nrow, calls)
146146
}
147147

148-
#' Fixes edge case of `:=` assignment operator being treated as assignment.
148+
#' Fixes edge case of custom assignments operator being treated as assignment.
149+
#'
150+
#' @param exclude (`character`) custom assignment operators to be excluded
149151
#' @keywords internal
150152
#' @noRd
151153
remove_custom_assign <- function(calls, exclude = c(":=")) {

0 commit comments

Comments
 (0)