Skip to content

Commit

Permalink
Update utils.r
Browse files Browse the repository at this point in the history
remove duplicate function `keep_last` from utils
  • Loading branch information
Mike-Hanna authored Aug 21, 2024
1 parent df11e21 commit 2644833
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions R/utils.r
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ compact <- function(x) {

is_empty <- function(x) length(x) == 0

keep_last <- function(...) {
keep_last <- function(...) {
x <- c(...)
x[!duplicated(names(x), fromLast = TRUE)]
}
Expand All @@ -68,11 +68,6 @@ named_vector <- function(title, x) {
cat(bullets, sep = "\n")
}

keep_last <- function(...) {
x <- c(...)
x[!duplicated(names(x), fromLast = TRUE)]
}

find_cert_bundle <- function() {
if (.Platform$OS.type != "windows") {
return()
Expand Down

0 comments on commit 2644833

Please sign in to comment.