diff --git a/R/utils-code_dependency.R b/R/utils-code_dependency.R index 34ddba01..385e142c 100644 --- a/R/utils-code_dependency.R +++ b/R/utils-code_dependency.R @@ -78,7 +78,7 @@ code_dependency <- function(code, object_names) { affected <- unlist(strsplit(sub("\\s*#\\s*@linksto\\s+", "", side_effects), "\\s+")) - unique(c(object_names, affected)) + union(object_names, affected) } else { object_names }