TimStats commited on
Commit
69b6f8d
·
verified ·
1 Parent(s): b1b6285

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +0 -12
app.R CHANGED
@@ -684,7 +684,6 @@ server <- function(input, output, session) {
684
  combinedPlot <- reactiveVal()
685
 
686
  observeEvent(input$update1,{
687
- if(input$pass == pass){
688
  req(game_data())
689
  game <- game_data() %>% filter(`Pitcher Name` == input$pitcher)
690
 
@@ -905,17 +904,6 @@ server <- function(input, output, session) {
905
  ggsave(file, plot = combinedPlot(), width = 15, height = 15, dpi = 300, units = "in") # Modified to be square
906
  }
907
  )
908
- }
909
- else{
910
- failplot <- ggplot() +
911
- annotate("text", x = 0.5, y = 0.5, label = "Incorrect Password",
912
- size = 10, color = "red") +
913
- theme_void() +
914
- theme(plot.background = element_rect(fill = "white", color = NA))
915
- output$combinedPlot <- renderPlot({
916
- failplot
917
- })
918
- }
919
  })
920
  }
921
 
 
684
  combinedPlot <- reactiveVal()
685
 
686
  observeEvent(input$update1,{
 
687
  req(game_data())
688
  game <- game_data() %>% filter(`Pitcher Name` == input$pitcher)
689
 
 
904
  ggsave(file, plot = combinedPlot(), width = 15, height = 15, dpi = 300, units = "in") # Modified to be square
905
  }
906
  )
 
 
 
 
 
 
 
 
 
 
 
907
  })
908
  }
909