Spaces:
Sleeping
Sleeping
Update app.R
Browse files
app.R
CHANGED
|
@@ -123,7 +123,7 @@ build_pitcher_table <- function(lb, min_pitches, portal_only) {
|
|
| 123 |
'">📊 View</button>'),
|
| 124 |
`Twitter` = paste0('<a href="https://x.com/search?q=',
|
| 125 |
gsub(" ", "+", Name),
|
| 126 |
-
'
|
| 127 |
`Board` = paste0('<button class="board-btn" data-pitcher="',
|
| 128 |
gsub('"', '"', Pitcher),
|
| 129 |
'" data-first="', gsub('"', '"', sapply(Pitcher, function(n) {
|
|
@@ -165,7 +165,7 @@ build_hitter_table <- function(lb, min_pa, portal_only, bat_side, hitter_pos) {
|
|
| 165 |
Name, '</button>'),
|
| 166 |
`Twitter` = paste0('<a href="https://x.com/search?q=',
|
| 167 |
gsub(" ", "+", sapply(Batter, format_name)),
|
| 168 |
-
'
|
| 169 |
`Board` = paste0('<button class="board-btn" data-batter="',
|
| 170 |
gsub('"', '"', Batter),
|
| 171 |
'" data-first="', gsub('"', '"', sapply(Batter, function(n) {
|
|
|
|
| 123 |
'">📊 View</button>'),
|
| 124 |
`Twitter` = paste0('<a href="https://x.com/search?q=',
|
| 125 |
gsub(" ", "+", Name),
|
| 126 |
+
'&src=typed_query&f=user" target="_blank">🐦 Search</a>'),
|
| 127 |
`Board` = paste0('<button class="board-btn" data-pitcher="',
|
| 128 |
gsub('"', '"', Pitcher),
|
| 129 |
'" data-first="', gsub('"', '"', sapply(Pitcher, function(n) {
|
|
|
|
| 165 |
Name, '</button>'),
|
| 166 |
`Twitter` = paste0('<a href="https://x.com/search?q=',
|
| 167 |
gsub(" ", "+", sapply(Batter, format_name)),
|
| 168 |
+
'&src=typed_query&f=user" target="_blank">🐦 Search</a>'),
|
| 169 |
`Board` = paste0('<button class="board-btn" data-batter="',
|
| 170 |
gsub('"', '"', Batter),
|
| 171 |
'" data-first="', gsub('"', '"', sapply(Batter, function(n) {
|