Skip to contents

Zips all files in the given export directory into a single ZIP file. Use this after exportPregnancies() and, if applicable, after writing PET comparison tables to the same folder, so the archive includes both shareable CSVs and PET comparison outputs.

Usage

zipExportFolder(exportFolder, zipPath = NULL)

Arguments

exportFolder

(character(1)) Path to the export folder (contents will be zipped).

zipPath

(character(1) or NULL) Full path for the output ZIP file. If NULL, the ZIP is created inside exportFolder with a name like YYYY-MM-DD-version-results.zip (using today's date and package version). Supply zipPath for a custom name (e.g. including your CDM name).

Value

Invisibly returns the path to the created ZIP file.