Skip to content

Commit e45fdd3

Browse files
Copilotgadenbuie
andcommitted
Remove purrr dependency - replace pluck with base R
Co-authored-by: gadenbuie <[email protected]>
1 parent cf9f094 commit e45fdd3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pkg-r/DESCRIPTION

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Imports:
2323
htmltools,
2424
lifecycle,
2525
promises,
26-
purrr,
2726
R6,
2827
rlang (>= 1.1.0),
2928
shiny,

pkg-r/R/data_source.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ DBISource <- R6::R6Class(
304304

305305
# Default to 'POSIX' if dbms name not found
306306
conn_info <- DBI::dbGetInfo(private$conn)
307-
dbms_name <- purrr::pluck(conn_info, "dbms.name", .default = "POSIX")
307+
dbms_name <- if (is.null(conn_info[["dbms.name"]])) "POSIX" else conn_info[["dbms.name"]]
308308

309309
# Remove ' SQL', if exists (SQL is already in the prompt)
310310
gsub(" SQL", "", dbms_name)

0 commit comments

Comments
 (0)