Skip to content

Commit b0d3366

Browse files
Fix a warning "... may be used in an incorrect context" (#4902)
1 parent dbc2058 commit b0d3366

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

R/save.r

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,10 @@ plot_dev <- function(device, filename = NULL, dpi = 300, call = caller_env()) {
173173
if ("units" %in% names(args)) {
174174
call_args$units <- 'in'
175175
}
176-
args <- modify_list(list(...), call_args)
177-
dev <- function(...) inject(device(!!!args))
176+
dev <- function(...) {
177+
args <- modify_list(list(...), call_args)
178+
inject(device(!!!args))
179+
}
178180
return(dev)
179181
}
180182

0 commit comments

Comments
 (0)