Skip to content

Commit

Permalink
put save_plot() examples into \donttest{} to avoid spurious output
Browse files Browse the repository at this point in the history
  • Loading branch information
clauswilke committed Jul 9, 2019
1 parent 9b654e2 commit 3f82dbd
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/save.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ ggsave2 <- function(filename, plot = ggplot2::last_plot(), device = NULL, path =
#' @param height Deprecated. Don't use.
#' @param ... Other arguments to be handed to [`ggsave2()`].
#' @examples
#' \donttest{
#' library(ggplot2)
#'
#' # save a single plot with a legend
Expand All @@ -114,6 +115,7 @@ ggsave2 <- function(filename, plot = ggplot2::last_plot(), device = NULL, path =
#' theme_minimal_hgrid()
#' p4 <- plot_grid(p3, p3b, labels = "AUTO")
#' save_plot("p4.pdf", p4, ncol = 2, base_asp = 1.1)
#' }
#' @export
save_plot <- function(filename, plot, ncol = 1, nrow = 1,
base_height = 3.71, base_asp = 1.618, base_width = NULL, ...,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/p3.pdf
Binary file not shown.
Binary file modified docs/reference/p4.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions man/save_plot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3f82dbd

Please sign in to comment.