From d0d985c70848a9d7f44ef902c86f06f64c053883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iago=20Gin=C3=A9-V=C3=A1zquez?= Date: Sat, 28 Oct 2023 03:08:06 +0200 Subject: [PATCH] Add silent=TRUE in try() - parse_args() --- R/parse_args.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/parse_args.R b/R/parse_args.R index 84e7f49a..e3030784 100644 --- a/R/parse_args.R +++ b/R/parse_args.R @@ -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)) {