feat: separate SQLite database path from output folder#7
Merged
anderstorstensson merged 2 commits intomainfrom Feb 17, 2026
Merged
Conversation
The output folder is often on a network drive shared between team
members, but SQLite databases are not safe on network filesystems due
to unreliable file locking. This introduces a separate, configurable
database directory that defaults to a local user-level path
(tools::R_user_dir("ClassiPyR", "data")), keeping the database safe
while the output folder can remain on a network drive.
- Add get_default_db_dir() returning a persistent local directory
- Rename get_db_path() parameter from output_folder to db_folder
- Add db_folder parameter to save_sample_annotations() and
rescan_file_index()
- Add Database Folder setting with browse button and network warning
- Update all get_db_path() calls in server.R to use config$db_folder
- Add migration FAQ for transferring annotations between machines
- Update vignettes with new settings table entries and network notes
- Add _pkgdown.yml entry for get_default_db_dir
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #7 +/- ##
==========================================
+ Coverage 87.59% 89.76% +2.16%
==========================================
Files 4 5 +1
Lines 379 674 +295
==========================================
+ Hits 332 605 +273
- Misses 47 69 +22
🚀 New features to boost your workflow:
|
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.
The output folder is often on a network drive shared between team members, but SQLite databases are not safe on network filesystems due to unreliable file locking. This introduces a separate, configurable database directory that defaults to a local user-level path (tools::R_user_dir("ClassiPyR", "data")), keeping the database safe while the output folder can remain on a network drive.