File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Generated by roxygen2: do not edit by hand
2
2
3
- S3method("$",ggproto)
4
- S3method("$",ggproto_parent)
5
- S3method("$",theme)
6
3
S3method("$<-",uneval)
7
4
S3method("+",gg)
8
5
S3method("[",mapped_discrete)
@@ -16,6 +13,9 @@ S3method(as.data.frame,mapped_discrete)
16
13
S3method(as.list,ggproto)
17
14
S3method(autolayer,default)
18
15
S3method(autoplot,default)
16
+ S3method(base::`$`, ggproto)
17
+ S3method(base::`$`, ggproto_parent)
18
+ S3method(base::`$`, theme)
19
19
S3method(c,mapped_discrete)
20
20
S3method(drawDetails,zeroGrob)
21
21
S3method(format,ggproto)
Original file line number Diff line number Diff line change @@ -152,7 +152,8 @@ fetch_ggproto <- function(x, name) {
152
152
153
153
}
154
154
155
- # ' @export
155
+ # Prevents bug described in S7/#390
156
+ # ' @rawNamespace S3method(base::`$`, ggproto)
156
157
`$.ggproto` <- function (x , name ) {
157
158
res <- fetch_ggproto(x , name )
158
159
if (! is.function(res )) {
@@ -162,7 +163,7 @@ fetch_ggproto <- function(x, name) {
162
163
make_proto_method(x , res , name )
163
164
}
164
165
165
- # ' @export
166
+ # ' @rawNamespace S3method(base::`$`, ggproto_parent)
166
167
`$.ggproto_parent` <- function (x , name ) {
167
168
res <- fetch_ggproto(.subset2(x , " parent" ), name )
168
169
if (! is.function(res )) {
Original file line number Diff line number Diff line change 83
83
# ' @rdname element
84
84
element <- S7 :: new_class(" element" , abstract = TRUE )
85
85
86
+ S7 :: method(`$` , element ) <-
87
+ function (x , i ) {
88
+ if (! S7 :: prop_exists(x , i )) {
89
+ return (NULL )
90
+ }
91
+ S7 :: prop(x , i )
92
+ }
93
+
86
94
# ' @export
87
95
# ' @rdname element
88
96
element_blank <- S7 :: new_class(" element_blank" , parent = element )
Original file line number Diff line number Diff line change @@ -942,7 +942,8 @@ combine_elements <- function(e1, e2) {
942
942
e1
943
943
}
944
944
945
- # ' @export
945
+ # Prevents bug described in S7/#390
946
+ # ' @rawNamespace S3method(base::`$`, theme)
946
947
`$.theme` <- function (x , ... ) {
947
948
.subset2(x , ... )
948
949
}
You can’t perform that action at this time.
0 commit comments