You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Quarto结合gtsummary使用时tbl-cap-location无法将表格标题置于顶部的问题求助

Quarto结合gtsummary使用时tbl-cap-location无法将表格标题置于顶部的问题求助

我现在超级困惑,在RStudio里用Quarto的时候,怎么都没法让表格标题显示在顶部!

我的Quarto文档代码如下:

---
title: "test caption location"
format: html
---
#| tbl-cap-location: top

data(mtcars)

library(gtsummary)
library(knitr)

mtcars %>%
  select(mpg, cyl, disp) %>%
  tbl_summary() |> 
  modify_caption("This is a test")

步骤看起来明明很简单,但渲染成HTML之后,标题却一直出现在表格底部,效果是这样的:
html render results

会不会是某个包版本太旧导致的问题呢?

备注:内容来源于stack exchange,提问作者Gingie

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.15 12:52:58