Skip to content

Commit

Permalink
revert: given the normalization as.name is no longer required
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Oct 18, 2024
1 parent 7ca9dee commit e70bd47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils-get_code_dependency.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ get_code_dependency <- function(code, names, check_names = TRUE) {
ass_str <- gsub("^['\"]|['\"]$", "", ass_str)
symbols <- c(ass_str, symbols)
}
if (!all(sapply(names, as.name) %in% unique(symbols))) {
if (!all(names %in% unique(symbols))) {
warning("Object(s) not found in code: ", toString(setdiff(names, symbols)))
}
}
Expand Down

0 comments on commit e70bd47

Please sign in to comment.