From 36ffebd975790e7cfcf0a1c80c386dd5751e37dd Mon Sep 17 00:00:00 2001 From: Winston Chang Date: Tue, 25 Apr 2017 15:32:56 -0500 Subject: [PATCH] Workaround for NOTE about objects in yet-unreleased version of ggplot2 --- R/render-plot.R | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/R/render-plot.R b/R/render-plot.R index d20910d9c..a07e470f1 100644 --- a/R/render-plot.R +++ b/R/render-plot.R @@ -470,11 +470,13 @@ find_panel_info <- function(b) { # This is for ggplot2>2.2.1, after an API was introduced for extracting # information about the plot object. find_panel_info_api <- function(b) { + # Workaround for check NOTE, until ggplot2 >2.2.1 is released + colon_colon <- `::` # Given a built ggplot object, return x and y domains (data space coords) for # each panel. - layout <- ggplot2::summarise_layout(b) - coord <- ggplot2::summarise_coord(b) - layers <- ggplot2::summarise_layers(b) + layout <- colon_colon("ggplot2", "summarise_layout")(b) + coord <- colon_colon("ggplot2", "summarise_coord")(b) + layers <- colon_colon("ggplot2", "summarise_layers")(b) # Given x and y scale objects and a coord object, return a list that has # the bases of log transformations for x and y, or NULL if it's not a