From 9ba56d16a89b2cca16ad8d969fb48eb4652c654c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Skytte=20Randl=C3=B8v?= Date: Fri, 19 Jun 2026 12:31:26 +0200 Subject: [PATCH 1/6] chore(DESCRIPTION): Move `withr` to Imports --- DESCRIPTION | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 7fafa7ee..d66458de 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -51,7 +51,8 @@ Imports: stringr, tidyr, tidyselect, - utils + utils, + withr Suggests: callr, conflicted, @@ -73,8 +74,7 @@ Suggests: spelling, testthat (>= 3.0.0), tibble, - tidyverse, - withr + tidyverse Language: en-US URL: https://github.com/ssi-dk/SCDB, https://ssi-dk.github.io/SCDB/ Config/testthat/edition: 3 From 497ee4a1b3b96cb652e9df8cf56a6f1ffe16215d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Skytte=20Randl=C3=B8v?= Date: Fri, 19 Jun 2026 12:37:12 +0200 Subject: [PATCH 2/6] fix(get_connection): Check `RSQLite` is installed for defaults --- R/connection.R | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/R/connection.R b/R/connection.R index 5a9b244c..5307205e 100644 --- a/R/connection.R +++ b/R/connection.R @@ -31,7 +31,10 @@ #' @export get_connection <- function(drv, ...) { if (missing(drv)) { - get_connection.SQLiteDriver(drv = RSQLite::SQLite(), ...) + if (!rlang::is_installed("RSQLite")) { + stop("No `drv` provided to `get_connection` and `RSQLite` is not installed to act as default.") + } + get_connection(drv = RSQLite::SQLite(), ...) } else { UseMethod("get_connection") } From e8107d0fba2cbce140a7ccbbdb46a53112cefb88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Skytte=20Randl=C3=B8v?= Date: Fri, 19 Jun 2026 12:49:50 +0200 Subject: [PATCH 3/6] docs(NEWS): Add entry on withr dependency --- NEWS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NEWS.md b/NEWS.md index 6f59a9f3..abed282d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,9 @@ # SCDB (development version) +## Improvements and Fixes + +* `withr` added as a dependency rather than a suggested package (#238). + # SCDB 0.6.2 From 2f0da2bfde5f196ac7fb46df59382acaa8c5652a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Skytte=20Randl=C3=B8v?= Date: Fri, 19 Jun 2026 13:29:12 +0200 Subject: [PATCH 4/6] chore(DESCRIPTION): Remove base r packages --- DESCRIPTION | 2 -- 1 file changed, 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index d66458de..414d440b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -42,7 +42,6 @@ Imports: dplyr, glue, lubridate, - methods, openssl, parallelly, purrr, @@ -51,7 +50,6 @@ Imports: stringr, tidyr, tidyselect, - utils, withr Suggests: callr, From 68c0c9f50262909eb5b1c5b60130b86219ac9a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Skytte=20Randl=C3=B8v?= Date: Wed, 8 Jul 2026 15:06:57 +0200 Subject: [PATCH 5/6] chore(get_connection): Fix lints --- R/connection.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/connection.R b/R/connection.R index 5307205e..32422f22 100644 --- a/R/connection.R +++ b/R/connection.R @@ -32,7 +32,7 @@ get_connection <- function(drv, ...) { if (missing(drv)) { if (!rlang::is_installed("RSQLite")) { - stop("No `drv` provided to `get_connection` and `RSQLite` is not installed to act as default.") + stop("No `drv` provided to `get_connection` and `RSQLite` is not installed to act as default.", call. = FALSE) } get_connection(drv = RSQLite::SQLite(), ...) } else { From 9a7706fb746ec92c1c3cfbc0c894abb56ee1737c Mon Sep 17 00:00:00 2001 From: RasmusSkytte Date: Wed, 8 Jul 2026 23:11:46 +1000 Subject: [PATCH 6/6] chore: Update pak.lock --- pak.lock | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/pak.lock b/pak.lock index 50bf0cb6..3727318b 100644 --- a/pak.lock +++ b/pak.lock @@ -166,7 +166,7 @@ }, { "package": "duckdb", - "version": "1.5.4", + "version": "1.5.2", "binary": true }, { @@ -616,7 +616,7 @@ }, { "package": "shiny", - "version": "1.14.0", + "version": "1.13.0", "binary": true }, { @@ -741,12 +741,12 @@ }, { "package": "withr", - "version": "3.0.3", + "version": "3.0.2", "binary": true }, { "package": "xfun", - "version": "0.59", + "version": "0.58", "binary": true }, { @@ -779,15 +779,5 @@ "version": "3.0.0", "binary": true } - ], - "sysreqs": { - "os": "linux", - "distribution": "ubuntu", - "version": "24.04", - "url": {}, - "pre_install": "apt-get -y update", - "install_scripts": "apt-get -y install libx11-dev git libcurl4-openssl-dev libssl-dev xz-utils cmake make libuv1-dev libgit2-dev zlib1g-dev pandoc unixodbc-dev libfreetype6-dev libjpeg-dev libpng-dev libtiff-dev libwebp-dev libpq-dev libicu-dev libfontconfig1-dev libfribidi-dev libharfbuzz-dev libxml2-dev", - "post_install": {}, - "packages": ["libx11-dev", "git", "libcurl4-openssl-dev", "libssl-dev", "xz-utils", "cmake", "make", "libuv1-dev", "libgit2-dev", "zlib1g-dev", "pandoc", "unixodbc-dev", "libfreetype6-dev", "libjpeg-dev", "libpng-dev", "libtiff-dev", "libwebp-dev", "libpq-dev", "libicu-dev", "libfontconfig1-dev", "libfribidi-dev", "libharfbuzz-dev", "libxml2-dev"] - } + ] }