Skip to content

Commit

Permalink
fix: Optimize PDF filename generation in generate_taxa_indiv_spaghett…
Browse files Browse the repository at this point in the history
…iplot_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.
  • Loading branch information
cafferychen777 committed Nov 4, 2024
1 parent 844ed70 commit 96811ee
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions R/generate_taxa_indiv_spaghettiplot_long.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 96811ee

Please sign in to comment.