【问题标题】:gtsummary table footnote missing in knitted pdf针织pdf中缺少gtsummary表脚注
【发布时间】:2021-02-21 22:04:04
【问题描述】:

我尝试将我的 Rmarkdown 报告编写为 PDF,但我注意到脚注不再存在。我错过了什么?

  stats_summary_table <-
    dat %>%
    tbl_summary(by = id, 
                missing = "no",
                digits = list(all_continuous() ~ c(0, 0, 1, 1, 3)),
                type = list(all_numeric() ~ "continuous"),
                statistic = list(all_continuous() ~ 
                                   "{min} ~ {max} {mean} ± {sd} [{cv}]")) %>%
      modify_footnote(starts_with("stat_") ~ "Range and mean±SD [cv]")

【问题讨论】:

    标签: r-markdown gtsummary


    【解决方案1】:

    带有 gt 包的 PDF 输出仍在开发中。您能否确认脚注与仅使用 gt 包的 PDF 输出一起正常工作?这将告诉我们问题出在 gt 还是 gtsummary 中。

    与此同时,我建议您使用 gtsummary 软件包支持的其他打印引擎之一(gt 是默认值) http://www.danieldsjoberg.com/gtsummary/articles/rmarkdown.html

    【讨论】:

      猜你喜欢
      • 2018-08-23
      • 2020-06-07
      • 1970-01-01
      • 1970-01-01
      • 2020-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多