From 177c1c7647c9b36d672cb104505ddc8ae054dd6b 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] silent unrelevant error inside a try --- 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)) {