
Archive Selected Items
archive_selected_items.RdCreates a ZIP archive containing selected files at specific commit versions. Handles file staging, directory structure options, and archive creation with proper error handling and user notifications. Now includes enhanced PDF support.
Usage
archive_selected_items(
input,
session,
archive_name,
root_dir,
flatten = FALSE,
archive_items = character(0),
commit_df = NULL
)Arguments
- input
Reactive input object from Shiny session containing user selections.
- session
Shiny session object for accessing namespaced inputs and notifications.
- archive_name
Character string. The desired name/path for the archive file.
- root_dir
Character string. The root directory path to use as the base for relative archive paths and working directory operations.
- flatten
Logical. If TRUE, removes directory structure and places all files in the root of the archive. Default is FALSE.
- archive_items
Character vector. File paths to be included in the archive. Default is empty character vector.
- commit_df
Data frame containing commit information with columns: commit, file, and approved status. Used for generating archive metadata. Default is NULL.