From 96811eedf2b5e148d00b5a7cda5c278613370713 Mon Sep 17 00:00:00 2001 From: Chen Yang Date: Mon, 4 Nov 2024 14:13:45 -0600 Subject: [PATCH] fix: Optimize PDF filename generation in generate_taxa_indiv_spaghettiplot_long - Shorten base filename to prevent system path length limitations - Remove unnecessary parameters from filename - Keep only essential identifiers (feature level, time var, group) - Add filename length check (max 200 chars) - Maintain readability while ensuring uniqueness - Fix GitHub Actions deployment issues related to long filenames This change addresses the 'Filename too long' errors in GitHub Actions while maintaining the ability to distinguish between different plot outputs. --- R/generate_taxa_indiv_spaghettiplot_long.R | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/R/generate_taxa_indiv_spaghettiplot_long.R b/R/generate_taxa_indiv_spaghettiplot_long.R index 7e47529..0c6a106 100644 --- a/R/generate_taxa_indiv_spaghettiplot_long.R +++ b/R/generate_taxa_indiv_spaghettiplot_long.R @@ -366,19 +366,7 @@ generate_taxa_indiv_spaghettiplot_long <- prev.filter, "_", "abund_filter_", - abund.filter, - "_", - "base_size_", - base.size, - "_", - "theme_choice_", - theme.choice, - "_", - "pdf_wid_", - pdf.wid, - "_", - "pdf_hei_", - pdf.hei + abund.filter ) if (!is.null(file.ann)) {