Skip to content

No major adaptations are needed for ggplot2 s7 #104

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

Merged
merged 9 commits into from
Jul 10, 2025
Merged

Conversation

stemangiola
Copy link
Collaborator

No description provided.

@stemangiola stemangiola requested a review from Copilot July 10, 2025 05:16
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adapts ggplot() methods for S7 compatibility by updating documentation, adding a conditional S7 registration function, and reflecting these changes in NEWS, README, and package metadata.

  • Updated manual and R documentation to reference SummarizedExperiment instead of tidyseurat
  • Introduced an S7-compatible ggplot method with register_s7_ggplot_method()
  • Updated NEWS, bumped version, and adjusted README examples and tables

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
man/ggplot.Rd Removed old alias and updated title to reference SummarizedExperiment
inst/NEWS.rd Added section for version 1.16.0 with S7 compatibility notes
README.md Reformatted links, example calls, and table headers
README.Rmd Updated example call to use unqualified ggplot()
R/ggplot2_methods.R Added S7 method registration in .onLoad() and updated title in roxygen
DESCRIPTION Bumped package version to 1.19.1 and added S7 to Suggests
Comments suppressed due to low confidence (4)

man/ggplot.Rd:8

  • Removing the S3 alias for ggplot.SummarizedExperiment may prevent users from finding help for the original method. Consider re-adding \alias{ggplot.SummarizedExperiment} to preserve lookup compatibility.
}

README.md:49

  • The table header separator was updated but the column titles were removed. Please restore the header row (e.g., | SummarizedExperiment-compatible Functions | Description |).
|----|----|

R/ggplot2_methods.R:44

  • The unqualified call to map() (and enquos()) may fail if purrr (and rlang) are not imported. Consider using namespace prefixes (e.g., purrr::map, rlang::enquos) or ensure these packages are listed in Imports.
                    map(~ quo_name(.x)) %>% unlist()

DESCRIPTION:4

  • The package version was bumped to 1.19.1 but the NEWS entry only documents version 1.16.0. Please synchronize the version number and NEWS sections to reflect all intermediate releases.
Version: 1.19.1

@stemangiola
Copy link
Collaborator Author

Tagging for knowledge @teunbrand @almahmoud @mblue9

…3.22 release, enhance documentation for as_tibble and ggplot methods, and add new import for cli package.
…proved clarity and compatibility with ggplot2.
…by removing S7 method registration. Update DESCRIPTION to remove S7 as a suggested dependency and enhance NEWS documentation for clarity.
@stemangiola stemangiola changed the title Adapt ggplot s7 No major adaptations are needed for ggplot2 s7 Jul 10, 2025
@stemangiola stemangiola merged commit 589a02d into master Jul 10, 2025
3 checks passed
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.

3 participants