Skip to content

Commit

Permalink
remove glue from dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
randrescastaneda committed Mar 29, 2024
1 parent 22203e1 commit 22d8279
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Config/testthat/edition: 3
Imports:
rlang,
data.table,
glue,
cli,
utils,
collapse (>= 2.0.9),
Expand Down
10 changes: 4 additions & 6 deletions R/possible_ids.R
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
))

}

Expand Down
6 changes: 1 addition & 5 deletions man/joyn-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22d8279

Please sign in to comment.