Skip to content

Replace ggpubr with patchwork to remove indirect ggrepel dependency#507

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/find-ggrepel-usage
Draft

Replace ggpubr with patchwork to remove indirect ggrepel dependency#507
Copilot wants to merge 2 commits intomainfrom
copilot/find-ggrepel-usage

Conversation

Copy link
Contributor

Copilot AI commented Mar 6, 2026

ggrepel is not directly used in serocalculator — it was only present as a transitive dependency via ggpubr, which itself was only used for ggarrange() in two places. This PR swaps ggpubr for patchwork (already used in data-raw/) to make the dependency surface explicit and minimal.

Changes

  • R/autoplot.seroincidence.by.R and R/graph_seroresponse_model_1.R: replace ggpubr::ggarrange(..., ncol, nrow) with patchwork::wrap_plots(..., ncol, nrow)

  • DESCRIPTION: remove ggpubr from Imports, add patchwork

  • man/autoplot.seroincidence.by.Rd: return type updated from "ggarrange""patchwork" (regenerated via roxygen2)

  • tests/.../seroinc-plot.svg: updated vdiffr snapshot to reflect patchwork layout

  • .gitignore: add tests/vdiffr.Rout.fail

  • The title of your PR should briefly describe the change.

  • Commit/merge messages to be included in NEWS.md should begin with -.

  • Code should follow the tidyverse style guide.

  • Documentation should use roxygen2, with Markdown syntax.

  • Contributions should include unit tests (using testthat).

For more information see Contributing.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • rspm-sync.rstudio.com
    • Triggering command: /opt/R/4.5.2/lib/R/bin/exec/R /opt/R/4.5.2/lib/R/bin/exec/R -q -e install.packages('devtools',~+~repos='REDACTED',~+~quiet=TRUE);~+~remotes::install_github('moodymudskipper/devtag',~+~quiet=TRUE) (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: kaiemjoy <16113030+kaiemjoy@users.noreply.github.com>
Copilot AI changed the title [WIP] Investigate usage of ggrepel package in serocalculator Replace ggpubr with patchwork to remove indirect ggrepel dependency Mar 6, 2026
@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
R/graph_seroresponse_model_1.R 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
R/autoplot.seroincidence.by.R 91.66% <100.00%> (ø)
R/graph_seroresponse_model_1.R 0.00% <0.00%> (ø)

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

📖 https://UCD-SERG.github.io/serocalculator/preview/pr507/
Preview documentation for this PR (at commit 42840c4)

github-actions bot added a commit that referenced this pull request Mar 6, 2026
Copilot AI added a commit that referenced this pull request Mar 6, 2026
…raceful internet error handling

Co-authored-by: kristinawlai <57973437+kristinawlai@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants