From 22d82791c2bceae0e03fcc06637a3f834577945c Mon Sep 17 00:00:00 2001 From: "R.Andres Castaneda Aguilar" Date: Fri, 29 Mar 2024 12:15:57 -0400 Subject: [PATCH] remove glue from dependencies --- DESCRIPTION | 1 - R/possible_ids.R | 10 ++++------ man/joyn-package.Rd | 6 +----- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 2f96c489..29b9bf10 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -35,7 +35,6 @@ Config/testthat/edition: 3 Imports: rlang, data.table, - glue, cli, utils, collapse (>= 2.0.9), diff --git a/R/possible_ids.R b/R/possible_ids.R index 5cf8060a..86cea94a 100644 --- a/R/possible_ids.R +++ b/R/possible_ids.R @@ -117,15 +117,13 @@ possible_ids <- function(dt, dvars <- vars[dup_var] msg <- "column names must be unique" - hint <- "try changing the names using `make.names()`" - problem <- glue::glue("{dvars} is/are duplicated") - rlang::abort(c( + hint <- "try changing the names using {.fun make.names}" + problem <- "{.var {dvars}} {?is/are} duplicated" + cli::cli_abort(c( msg, i = hint, x = problem - ), - class = "error_class" - ) + )) } diff --git a/man/joyn-package.Rd b/man/joyn-package.Rd index 1bc98aa3..cbebd280 100644 --- a/man/joyn-package.Rd +++ b/man/joyn-package.Rd @@ -22,11 +22,7 @@ Useful links: Authors: \itemize{ \item Zander Prinsloo \email{zprinsloo@worldbank.org} -} - -Other contributors: -\itemize{ - \item Rossana Tatulli \email{rtatulli@worldbank.org} [contributor] + \item Rossana Tatulli \email{rtatulli@worldbank.org} } }