Skip to content

fix: silence duckdb 2.0 storage-location message - #18

Merged
rkrug merged 1 commit into
devfrom
claude/quiet-duckdb-storage-message
Nov 20, 2026
Merged

rkrug merged 1 commit into
devfrom
claude/quiet-duckdb-storage-message

Conversation

@rkrug

@rkrug rkrug commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Same fix as openalexPro/openalexPro#89 (issue openalexPro/openalexPro#88).

  • New internal .oac_duckdb() in R/corpus_to_csljson.R: calls duckdb(shared_home = dir.exists("~/.duckdb")), the location duckdb would pick itself, which silences the "storing downloaded extensions and secrets under ~/.duckdb" message (up to 60× per run) and the interactive prompt to create ~/.duckdb.
  • A duckdb.home option or DUCKDB_R_HOME set by the user is left alone; on duckdb < 2.0 it falls back to plain duckdb().
  • All package and test connections use it; a new test asserts the driver is created silently. NEWS entry added.

Tests: full suite passes locally under duckdb 2.0.0. Parallel workers load the installed ecosystem packages, so the message still shows from workers until the fixed openalexPro / openalexSnapshot are installed; with all fixed branches installed, the test logs contain no storage message.

🤖 Generated with Claude Code

Every duckdb() call that let duckdb pick the extension/secret home printed
a message (up to 60 times per non-interactive session) and could prompt in
interactive ones. .oac_duckdb() passes shared_home = dir.exists("~/.duckdb"),
i.e. the location duckdb would pick anyway, unless the user set duckdb.home
or DUCKDB_R_HOME. Falls back to plain duckdb() on duckdb < 2.0.
Same fix as openalexPro/openalexPro#89.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rkrug
rkrug merged commit ea070b5 into dev Nov 20, 2026
5 checks passed
@rkrug
rkrug deleted the claude/quiet-duckdb-storage-message branch November 20, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant