igroffman commited on
Commit
088a00c
·
verified ·
1 Parent(s): e8bbde3

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +4 -1
app.R CHANGED
@@ -2155,7 +2155,7 @@ catcher_create_catcher_pdf <- function(game_df, catcher_name, output_file, bio_d
2155
  .groups = "drop")
2156
 
2157
  opp_receiving_stats <- catcher_df %>%
2158
- filter(BatterTeam = "COA_CHA") %>%
2159
  summarise(`Opp Strikes Stolen` = sum(StolenStrike, na.rm = TRUE),
2160
  `Opp Strikes Lost` = sum(StrikeLost, na.rm = TRUE),
2161
  `Opp Game +/-` = sum(StolenStrike, na.rm = TRUE) - sum(StrikeLost, na.rm = TRUE),
@@ -2273,6 +2273,9 @@ catcher_create_catcher_pdf <- function(game_df, catcher_name, output_file, bio_d
2273
  }, error=function(e){ message("Error creating PDF: ", e$message) }, finally={ dev.off() })
2274
  if (!file.exists(output_file)) stop("PDF file was not created successfully")
2275
  return(output_file)
 
 
 
2276
  }
2277
 
2278
  # =====================================================================
 
2155
  .groups = "drop")
2156
 
2157
  opp_receiving_stats <- catcher_df %>%
2158
+ filter(BatterTeam == "COA_CHA") %>%
2159
  summarise(`Opp Strikes Stolen` = sum(StolenStrike, na.rm = TRUE),
2160
  `Opp Strikes Lost` = sum(StrikeLost, na.rm = TRUE),
2161
  `Opp Game +/-` = sum(StolenStrike, na.rm = TRUE) - sum(StrikeLost, na.rm = TRUE),
 
2273
  }, error=function(e){ message("Error creating PDF: ", e$message) }, finally={ dev.off() })
2274
  if (!file.exists(output_file)) stop("PDF file was not created successfully")
2275
  return(output_file)
2276
+
2277
+ grid::grid.text("Data: TrackMan | Report Generated: Coastal Carolina Baseball Analytics",
2278
+ x = 0.5, y = 0.02, gp = grid::gpar(cex = 0.75, col = "grey50"))
2279
  }
2280
 
2281
  # =====================================================================