Repository navigation
fix: silence duckdb 2.0 storage-location message - #18
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Same fix as openalexPro/openalexPro#89 (issue openalexPro/openalexPro#88).
.oac_duckdb()inR/corpus_to_csljson.R: callsduckdb(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.duckdb.homeoption orDUCKDB_R_HOMEset by the user is left alone; on duckdb < 2.0 it falls back to plainduckdb().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