This function exports project-related figures and output data by creating a dedicated export folder within the project directory. It organizes the export folder into subdirectories for figures, CSV files, and RDS files, copies the relevant files from their original locations, and finally compresses the export folder into a zip archive containing only relative file paths.
Value
This function does not return a value. It performs file operations and creates a zip archive in the project folder.
Details
The function performs the following steps:
Constructs paths for the project folder, figures, and output data using global variables (e.g.,
projects
andbase_path
).Creates an export folder named
export_data_<project_name>
within the project folder.Creates subdirectories within the export folder for figures, CSV files, and RDS files.
Copies figures from the project's figure folder to the export folder.
Copies CSV files from the output CSV folder to the corresponding subfolder in the export directory.
Copies RDS files from the
After_cleaning_rds_files
subfolder (if present) to the export folder.Zips the contents of the export folder into a zip archive containing only the relative file paths.