rquartogtsummary

Quarto tbl-cap-location not going to top with gtsummary


I am very confused why I can't get the table caption to go to the top when using quarto in RStudio


    ---
    title: "test caption location"
    format: html
    ---
    
    ```{r}

    #| tbl-cap-location: top
    
    data(mtcars)
    
    library(gtsummary)
    library(knitr)
    
    mtcars %>%
      select(mpg, cyl, disp) %>%
      tbl_summary() |> 
      modify_caption("This is a test")
    ```

It seems super straight forward, but after the render it is always on the bottom: html render results

Is it something being out of date or something?


Solution

  • I needed to update Quarto from the website. As soon as I ran the current version, it moved the table caption location to the top. However, now the table caption can no longer go to the bottom. A possible bug?