使用rmarkDown在可弹力表中的MS单词号码
有没有办法将MS Word计算的字段插入可弹出的表格中?
在军官
软件包中,有一个函数run_word_field
。我试图以以下方式使用它:
flextable(df) %>%
compose(value = as_paragraph(
as_chunk(run_word_field(field = "NumPages \\* MERGEFORMAT"))
))
但是它会引发错误。
有解决方法吗?
Is there a way to insert MS Word computed field - total number of pages in the document - into a flextable table?
In the officer
package there's a function run_word_field
. I tried to use it the following way:
flextable(df) %>%
compose(value = as_paragraph(
as_chunk(run_word_field(field = "NumPages \\* MERGEFORMAT"))
))
but it throws an error.
Is there a workaround?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您现在可以使用函数
as_word_field
:You can now use function
as_word_field
: