我正在使用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)
我找不到找到将
Table
和continued 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。但是,如果您也可以找到有关后者的新选项,那么我很乐意将其添加到软件包中。