Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rareplot error causes pipeline failure at process PHYLOSEQ_UNFILTERED #5

Closed
alexpiper opened this issue Jul 17, 2024 · 1 comment
Closed

Comments

@alexpiper
Copy link

freyr is failing at process FREYR:PHYLOSEQ_UNFILTERED (fwhF2-fwhR2nDac) using the test dataset.

Error in break_suffix[bad_break][improved_break & !power10_break] <- names(lower_break[improved_break & : NAs are not allowed in subscripted assignments Calls: tryCatch ... get_labels -> <Anonymous> -> labels -> number -> scale_cut

The error seems to be with the scale_cut function, as reported in the scales repo r-lib/scales#413

Following a suggestion in that thread, a temporary workaround until scales is updated is replacing this line in the rareplot function in bin/functions.R :
scale_x_continuous(labels = label_number(scale_cut = cut_short_scale())) + with scale_x_continuous(label = scales::label_number(scale_cut = append(scales::cut_short_scale(), 1, 1)))+

This seems to fix the issue

@alexpiper
Copy link
Author

Ive applied this workaround in c38b97a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant