I am trying to put the caption for a table in a Quarto document above the table, which is the default behavior according to Quarto’s documentation. However, even when I specify that the table caption location should be top, it is still showing up at the bottom. I’m not sure if this is a bug or if I am doing something wrong.
```{r}
#| label: back-to-back-home-runs
#| tbl-cap: "**Games Ending in Back-to-Back Home Runs - 1990 to 2020**"
#| tbl-cap-location: top
back_to_back_home_run_game_endings %>%
select(-c("PARK", "HIT_VAL", "EVENT_RUNS")) %>%
kable(col.names = c("Row ID", "Game ID", "Date", "Home Team", "Away Team",
"Inning", "Batter", "Pitcher", "Event"),
align = "lllccclll")
```
This code results in the table caption showing at the bottom. I’ve attached an image here. The output is like this with the caption at the bottom:
Row ID Game ID Date …
1341313 CIN199605070 1996-05-07 …
Games Ending in Back-to-Back Home Runs – 1990 to 2020
Thanks in advance for any insight!