Skip to content

Commit ef55780

Browse files
committed
sprinkle comments
1 parent a5756a8 commit ef55780

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

R/aes.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ new_aesthetic <- function(x, env = globalenv()) {
130130
x
131131
}
132132

133+
# TODO: remove `local()` when S7 has fixed S7/#390
133134
#' @export
134135
local({
135136
S7::method(print, class_mapping) <- function(x, ...) {

R/plot-build.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#' @keywords internal
2727
#' @export
2828
ggplot_build <- function(plot, ...) {
29+
# TODO: Swap to S7 generic once S7/#543 is resolved
2930
env <- try_prop(plot, "plot_env")
3031
if (!is.null(env)) {
3132
attach_plot_env(env)
@@ -199,6 +200,7 @@ layer_grob <- get_layer_grob
199200
#' @param data plot data generated by [ggplot_build()]
200201
#' @export
201202
ggplot_gtable <- function(data) {
203+
# TODO: Swap to S7 generic once S7/#543 is resolved
202204
attach_plot_env(data@plot@plot_env)
203205
UseMethod("ggplot_gtable")
204206
}

R/theme-elements.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ element_render <- function(theme, element, ..., name = NULL) {
466466
#' @keywords internal
467467
#' @export
468468
element_grob <- function(element, ...) {
469+
# TODO: Swap to S7 generic once S7/#543 is resolved
469470
UseMethod("element_grob")
470471
}
471472

0 commit comments

Comments
 (0)