Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ggplot2 (development version)

* Add support for the BrailleR package for creating descriptions of the plot
when rendered (@thomasp85, #4459)

* Fix a bug in the layer implementation that introduced a new state after the
first render which could lead to a different look when rendered the second
time (@thomasp85, #4204)
Expand Down
4 changes: 4 additions & 0 deletions R/plot.r
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ print.ggplot <- function(x, newpage = is.null(vp), vp = NULL, ...) {
upViewport()
}

if (isTRUE(getOption("BrailleR.VI")) && rlang::is_installed("BrailleR")) {
print(asNamespace("BrailleR")$VI(x))
}

invisible(x)
}
#' @rdname print.ggplot
Expand Down