Writes all available session datasets to a ZIP file at dest_file.
Includes tabular data as CSV, text/object data as TXT, the source PDF (if
present), and a metadata file. Called by both download_all_data() and the
Zenodo module's session-upload mode.
The ZIP filename is derived from a reference ID generated by
eDataDRF::generate_reference_id().
Examples
if (FALSE) { # \dontrun{
# session and moduleState are Shiny reactive objects
build_session_zip(session, moduleState, dest_file = tempfile(fileext = ".zip"))
} # }