Skip to content

Commit

Permalink
Merge pull request #182 from renkun-ken/plot-args
Browse files Browse the repository at this point in the history
Use dev.args option when creating png device before replay
  • Loading branch information
andycraig authored Jan 24, 2020
2 parents 84a77c1 + 5d47b6e commit b6597b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/init.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ if (interactive() && !identical(Sys.getenv("RSTUDIO"), "1")) {
plot_updated <<- FALSE
record <- recordPlot()
if (length(record[[1]])) {
png(plot_file)
dev_args <- getOption("dev.args")
do.call(png, c(list(filename = plot_file), dev_args))
on.exit({
dev.off()
if (!is.null(plot_history_file)) {
Expand Down

0 comments on commit b6597b5

Please sign in to comment.