Skip to content

Commit

Permalink
Add silent=TRUE in try() - parse_args()
Browse files Browse the repository at this point in the history
  • Loading branch information
Iago Giné-Vázquez authored and dcomtois committed Nov 10, 2023
1 parent 707ff03 commit d0d985c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/parse_args.R
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ parse_args <- function(sys_calls,
}
} else if (grepl(re3, str, perl = TRUE)) {
obj_name <- sub(re3, "\\1", str, perl = TRUE)
obj_env <- try(pryr::where(obj_name))
obj_env <- try(pryr::where(obj_name), silent = TRUE)
if (!inherits(obj_env, "try-error")) {
obj <- get(obj_name, envir = obj_env)
if (is.data.frame(obj)) {
Expand Down

0 comments on commit d0d985c

Please sign in to comment.