Skip to content

Commit 3867a49

Browse files
authored
Add support for the BrailleR package (#4461)
1 parent 07ddd0c commit 3867a49

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# ggplot2 (development version)
22

3+
* Add support for the BrailleR package for creating descriptions of the plot
4+
when rendered (@thomasp85, #4459)
5+
36
* Fix a bug in the layer implementation that introduced a new state after the
47
first render which could lead to a different look when rendered the second
58
time (@thomasp85, #4204)

R/plot.r

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ print.ggplot <- function(x, newpage = is.null(vp), vp = NULL, ...) {
179179
upViewport()
180180
}
181181

182+
if (isTRUE(getOption("BrailleR.VI")) && rlang::is_installed("BrailleR")) {
183+
print(asNamespace("BrailleR")$VI(x))
184+
}
185+
182186
invisible(x)
183187
}
184188
#' @rdname print.ggplot

0 commit comments

Comments
 (0)