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

Adopt suggestions of #5590 #5721

Merged
merged 4 commits into from
Mar 18, 2024
Merged

Adopt suggestions of #5590 #5721

merged 4 commits into from
Mar 18, 2024

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #5590.

Briefly, it adopts some of the suggestions raised in the issue.

Comment on lines +30 to +36
#' @section Working with ggproto classes:
#' The ggproto objects constructed are build on top of environments, which has
#' some ramifications. Environments do not follow the 'copy on modify' semantics
#' one might be accustomed to in regular objects. Instead they have
#' ['modify in place'](https://adv-r.hadley.nz/names-values.html#env-modify)
#' semantics.
#'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added this bit of my own volition, because I recall being a bit stumped by this when first working with ggproto objects.

Merge branch 'main' into fix_5590

# Conflicts:
#	R/ggproto.R
#	R/stat-.R
@teunbrand teunbrand requested a review from thomasp85 March 4, 2024 09:56
@teunbrand teunbrand added this to the ggplot2 3.5.1 milestone Mar 5, 2024
Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

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

LGTM

@teunbrand teunbrand merged commit c8df060 into tidyverse:main Mar 18, 2024
12 checks passed
@teunbrand teunbrand deleted the fix_5590 branch March 18, 2024 08:03
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.

docs: Improve extending ggplot2 vignette?
2 participants