From 377a4b0abe11dc26dfc535f3895757a6ccee7152 Mon Sep 17 00:00:00 2001 From: "Adam H. Sparks" <adamhsparks@icloud.com> Date: Sun, 8 Dec 2024 17:50:03 +0800 Subject: [PATCH] add call = rlang::caller_env() to cli_abort() --- R/internal_functions.R | 3 ++- codemeta.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/R/internal_functions.R b/R/internal_functions.R index 8485df5..f70d942 100644 --- a/R/internal_functions.R +++ b/R/internal_functions.R @@ -21,7 +21,8 @@ .check_class <- function(x, class) { if (missing(x) || !inherits(x, class)) { - cli::cli_abort("You must provide a {.code read.abares} class object.") + cli::cli_abort("You must provide a {.code read.abares} class object.", + call = rlang::caller_env()) } } diff --git a/codemeta.json b/codemeta.json index f33cbc7..aa8dcf6 100644 --- a/codemeta.json +++ b/codemeta.json @@ -333,7 +333,7 @@ }, "SystemRequirements": null }, - "fileSize": "392.199KB", + "fileSize": "392.246KB", "citation": [ { "@type": "SoftwareSourceCode",