Skip to content

Commit 1bd22b7

Browse files
committed
Let GeomErrorbarh throw deprecation message with same id
1 parent 1bdc819 commit 1bd22b7

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

R/geom-errorbar.R

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ geom_errorbarh <- function(mapping = NULL, data = NULL,
3636
show.legend = NA,
3737
inherit.aes = TRUE) {
3838
deprecate_soft0(
39-
"3.5.2", "geom_errobarh()", "geom_errorbar(orientation = \"y\")"
39+
"3.5.2", "geom_errobarh()", "geom_errorbar(orientation = \"y\")",
40+
id = "no-more-errorbarh"
4041
)
4142
geom_errorbar(
4243
mapping = mapping,
@@ -107,4 +108,13 @@ GeomErrorbar <- ggproto("GeomErrorbar", Geom,
107108
#' @format NULL
108109
#' @usage NULL
109110
#' @export
110-
GeomErrorbarh <- ggproto("GeomErrorbarh", GeomErrorbar)
111+
GeomErrorbarh <- ggproto(
112+
"GeomErrorbarh", GeomErrorbar,
113+
setup_params = function(data, params) {
114+
deprecate_soft0(
115+
"3.5.2", "geom_errobarh()", "geom_errorbar(orientation = \"y\")",
116+
id = "no-more-errorbarh"
117+
)
118+
GeomLinerange$setup_params(data, params)
119+
}
120+
)

0 commit comments

Comments
 (0)