我正在使用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分支中添加了几行内容,该分支引入了两个新选项来调整标题(如果表已拆分)。快速示例:

  • 更新不带指定标题的拆分表的默认标题:
    > panderOptions('table.continues', 'Continuará')
    > pander(mtcars)
    
  • 如果表已拆分,则将更新后缀附加到用户指定的标题:
    > panderOptions('table.continues.affix', '(continuará)')
    > set.caption('MTCARS')
    > pander(mtcars)
    

  • install the most recent version of pander 并验证此更新是否对您有用-对于上述la脚的示例,我们感到抱歉,请注意,不幸的是我不会说西班牙语。

    PS:我还没有碰过Table:前缀,因为这似乎是Pandoc语法中指定的前缀,当转换为其他文档格式时,Pandoc会自动删除该前缀:请参阅relevant docs。但是,如果您也可以找到有关后者的新选项,那么我很乐意将其添加到软件包中。

    09-03 18:40