gpt4 book ai didi

knitr - 如何更改 pander 中的英文字幕?

转载 作者:行者123 更新时间:2023-12-01 12:46:09 26 4
gpt4 key购买 nike

我正在使用 pander 通过 RStudio、knitr、pander、pandoc、Word 打印更漂亮的表格。我有一个两页的表格,我想在其中添加一个西类牙语标题:

set.caption("Límites izquierdo y derecho para las diferentes variables")
pander(LimitesUnivariado, include.rownames=FALSE)

这几乎可以工作,但我的标题是:

Table: Límites izquierdo y derecho para las diferentes variables (continued below)

我找不到将 Tablecontinued below 更改为对应的西类牙语的方法。有人知道怎么做吗?

最佳答案

谢谢你 reporting this issue on GitHub , 我刚刚将几行推送到 master 分支,它引入了两个新选项来在表格被拆分时调整标题。快速示例:

  1. 更新没有指定标题的拆分表的默认标题:

    > panderOptions('table.continues', 'Continuará')
    > pander(mtcars)
  2. 如果表格被拆分,则更新连接到用户指定标题的词缀:

    > panderOptions('table.continues.affix', '(continuará)')
    > set.caption('MTCARS')
    > pander(mtcars)

install the most recent version of pander并验证此更新是否适合您 - 对于上述蹩脚的示例,我们深表歉意,请注意,很遗憾,我不会说西类牙语。

PS:我没有触及 Table: 前缀,因为它似乎是在 Pandoc 的语法中指定的,当转换为其他文档格式时,Pandoc 会自动将其删除:请参阅relevant docs .但是,如果您也能找到关于后者的新选项,我会很乐意立即将其添加到包中。

关于knitr - 如何更改 pander 中的英文字幕?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15735342/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com