@@ -403,23 +403,26 @@ local({
403403})
404404
405405# Element setter methods
406- local({
407- S7 :: method(`$<-` , element ) <- function (x , i , value ) {
408- # deprecate_soft0("4.1.0", I("`<ggplot2::element>$i <- value`"), I("`<ggplot2::element>@i <- value`"))
409- S7 :: props(x ) <- `[[<-`(S7 :: props(x ), i , value )
410- x
411- }
412- S7 :: method(`[<-` , element ) <- function (x , i , value ) {
413- # deprecate_soft0("4.1.0", I("`<ggplot2::element>[i] <- value`"), I("`S7::props(<ggplot2::element>)[i] <- value`"))
414- S7 :: props(x ) <- `[<-`(S7 :: props(x ), i , value )
415- x
416- }
417- S7 :: method(`[[<-` , element ) <- function (x , i , value ) {
418- # deprecate_soft0("4.1.0", I("`<ggplot2::element>[[i]] <- value`"), I("S7::prop(<ggplot2::element>, i) <- value"))
419- S7 :: props(x ) <- `[[<-`(S7 :: props(x ), i , value )
420- x
421- }
422- })
406+ # ' @export
407+ `$<-.ggplot2::element` <- function (x , i , value ) {
408+ # deprecate_soft0("4.1.0", I("`<ggplot2::element>$i <- value`"), I("`<ggplot2::element>@i <- value`"))
409+ S7 :: props(x ) <- `[[<-`(S7 :: props(x ), i , value )
410+ x
411+ }
412+
413+ # ' @export
414+ `[<-.ggplot2::element` <- function (x , i , value ) {
415+ # deprecate_soft0("4.1.0", I("`<ggplot2::element>[i] <- value`"), I("`S7::props(<ggplot2::element>)[i] <- value`"))
416+ S7 :: props(x ) <- `[<-`(S7 :: props(x ), i , value )
417+ x
418+ }
419+
420+ # ' @export
421+ `[[<-.ggplot2::element` <- function (x , i , value ) {
422+ # deprecate_soft0("4.1.0", I("`<ggplot2::element>[[i]] <- value`"), I("S7::prop(<ggplot2::element>, i) <- value"))
423+ S7 :: props(x ) <- `[[<-`(S7 :: props(x ), i , value )
424+ x
425+ }
423426
424427# ' @export
425428print.rel <- function (x , ... ) print(noquote(paste(x , " *" , sep = " " )))
0 commit comments