Skip to content

Commit 75aa287

Browse files
committed
Fix example cleanup
1 parent 21597be commit 75aa287

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

R/agg_dev.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ agg_capture <- function(width = 480, height = 480, units = 'px', pointsize = 12,
342342
#' dev.off()
343343
#'
344344
#' # Replay these on another device
345-
#' agg_png()
345+
#' file <- tempfile(fileext = '.png')
346+
#' agg_png(file)
346347
#' replayPlot(rec)
347348
#' dev.off()
348349
#'

man/agg_record.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)