Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jokergoo committed Jun 6, 2023
1 parent c530e8f commit 8376b71
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions R/collect.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ setMethod(f = "collect_plots",
verbose = TRUE, mc.cores = 1, cores = mc.cores, ...) {

nv = length(dev.list())
on.exit({
nv2 = length(dev.list())
while(nv2 > nv & nv2 > 1) {
dev.off2()
nv2 = length(dev.list())
}
})
# on.exit({
# nv2 = length(dev.list())
# while(nv2 > nv & nv2 > 1) {
# dev.off2()
# nv2 = length(dev.list())
# }
# })

fun_name = deparse(substitute(fun))

Expand Down Expand Up @@ -200,13 +200,13 @@ setMethod(f = "collect_plots",
definition = function(object, verbose = TRUE) {

nv = length(dev.list())
on.exit({
nv2 = length(dev.list())
while(nv2 > nv && nv2 > 1) {
dev.off2()
nv2 = length(dev.list())
}
})
# on.exit({
# nv2 = length(dev.list())
# while(nv2 > nv && nv2 > 1) {
# dev.off2()
# nv2 = length(dev.list())
# }
# })

qqcat = function(...) {
message(qq(...))
Expand Down

0 comments on commit 8376b71

Please sign in to comment.