Skip to content

Commit

Permalink
Merge pull request #1 from MLopez-Ibanez/MLopez-Ibanez-patch-237
Browse files Browse the repository at this point in the history
Call par() with no.readonly=TRUE to avoid warning (#237)
  • Loading branch information
MLopez-Ibanez committed Dec 15, 2023
2 parents 0c5254e + c56ae90 commit 3a73da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/par.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ NULL

get_par <- function(...) {
new <- auto_splice(list(...))
out <- do.call(graphics::par, as.list(names(new)))
out <- do.call(graphics::par, c(as.list(names(new), list(no.readonly=TRUE))))

# `par()` doesn't wrap in a list if input is length 1
if (length(new) == 1) {
Expand Down

0 comments on commit 3a73da9

Please sign in to comment.