Skip to content

Commit

Permalink
plotly aws bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
agouy committed Feb 2, 2021
1 parent f987815 commit 6503390
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server.R
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,13 @@ shinyServer(function(input, output) {
yaxis = list(title = "Locus")
)

pdf(NULL)
dummy_dev_id = dev.cur()
on.exit({
if (dummy_dev_id %in% dev.list()) {
dev.off(dummy_dev_id)
} else warning("Dummy graphics device was closed by someone else. This should not have happened...")
})
(fig)
})

Expand Down

0 comments on commit 6503390

Please sign in to comment.