File index cache, cross-platform folder browser, and persistence fixes#4
Merged
anderstorstensson merged 13 commits intomainfrom Feb 4, 2026
Merged
File index cache, cross-platform folder browser, and persistence fixes#4anderstorstensson merged 13 commits intomainfrom
anderstorstensson merged 13 commits intomainfrom
Conversation
Implement disk-based file index cache to avoid expensive recursive directory scans on startup. The cache stores ROI, classification, and annotation file locations in a JSON file alongside settings. Add sync button and cache age indicator to the sidebar. Support headless cache updates via rescan_file_index() for cron jobs. Replace platform-specific folder dialogs (tcltk/utils::choose.dir) with shinyFiles web-based directory browser for cross-platform support. Additional improvements: - Add adc_folder parameter to save_sample_annotations() for non-standard folder structures - Handle empty (0-byte) ADC files gracefully in read_roi_dimensions() - Invalidate cache automatically when folder paths change in settings - Update vignettes, FAQ, NEWS, README, and pkgdown config for new features
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment Thanks for integrating Codecov - We've got you covered ☂️ |
…oss reinstalls Make shinyDirChoose use dynamic roots via a custom dynamic_roots S3 class that works around shinyFiles 0.9.3 not handling function roots in sendDirectoryData. The browse dialog now opens at the directory typed in the corresponding text field instead of always starting at the working directory. Save class2use file to user config directory (~/.config/R/ClassiPyR/) instead of the package install directory so it survives reinstalls.
Measure tool: position SVG and label inside .gallery-drag-area with
position:absolute so the line scrolls with images instead of drifting.
Use z-index below the sticky toolbar so the line tucks behind it.
Skip image selection toggle while in measure mode to prevent re-renders
from removing the measurement overlay.
Vignettes: correct config directory paths to match
tools::R_user_dir("ClassiPyR", "config"), fix ROI folder structure
docs to reflect that any layout works (recursive scan), document
reset_settings behavior with class list, add initial "No sample loaded"
state to mode indicator docs, and misc corrections.
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.
Summary
Changes
New features
~/.config/R/ClassiPyR/file_index.jsonfor instant startup. Includes sync button, cache age indicator, auto-sync setting, and a headlessrescan_file_index()function for cron jobsdynamic_rootsS3 class to work around a shinyFiles 0.9.3 bug, so the dialog opens at the path currently typed in the text fieldBug fixes
class2use_saved.matis now stored in~/.config/R/ClassiPyR/instead of the package install directory, so it survives reinstallsOther
Test plan
devtools::install()reinstall