Skip to content

Commit

Permalink
rev
Browse files Browse the repository at this point in the history
  • Loading branch information
agouy committed Feb 2, 2021
1 parent 25fd8d1 commit 5301dca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
21 changes: 8 additions & 13 deletions server.R
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,7 @@ shinyServer(function(input, output) {

if(is.null(input$plotIndicesFOR)) return(NULL)

par(mar=rep(input$margin,4))
library(plotly)
# par(mar=rep(input$margin,4))

fig <- plot_ly(
x = dat[, input$plotIndicesFOR],
Expand All @@ -544,17 +543,13 @@ shinyServer(function(input, output) {
yaxis = list(title = "Locus")
)

<<<<<<< HEAD
pdf(NULL)
=======
pdf(tempfile(fileext=".pdf"))
>>>>>>> 4804b290ae4e763546e7896c69666b2a5a37bbce
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...")
})
# 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
2 changes: 2 additions & 0 deletions ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ suppressPackageStartupMessages({
library(shinythemes)
library(colourpicker)
library(DT)
library(plotly)

})

shinyUI(
Expand Down

0 comments on commit 5301dca

Please sign in to comment.