Skip to content

Commit

Permalink
Get rid of other, now redundant, interactive checks
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Mar 29, 2024
1 parent 9dea7a4 commit e47e390
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions R/images.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
#' res <- capturePlot(plot(cars))
#'
#' # View result
#' if (interactive()) browseURL(res)
#' browseURL(res)
#'
#' # Clean up
#' unlink(res)
#'
#' # Custom width/height
#' pngpath <- tempfile(fileext = ".png")
#' capturePlot(plot(pressure), pngpath, width = 800, height = 375)
#' if (interactive()) browseURL(pngpath)
#' browseURL(pngpath)
#' unlink(pngpath)
#'
#' # Use a custom graphics device (e.g., SVG)
Expand All @@ -41,7 +41,7 @@
#' grDevices::svg,
#' width = 8, height = 3.75
#' )
#' if (interactive()) browseURL(svgpath)
#' browseURL(svgpath)
#' unlink(svgpath)
#' }
#'
Expand Down
9 changes: 5 additions & 4 deletions man/capturePlot.Rd

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

0 comments on commit e47e390

Please sign in to comment.