从r markdown中的单词模板渲染pdf表文档

发布于 2025-02-09 11:06:57 字数 321 浏览 2 评论 0原文

我有一个来自Word的模板(请参阅照片),我想使用R数据框来填充。模板中标有<<的字段>>匹配我的数据框中的字段名称。我想将来自此数据框架的值输入表中,然后为每个<<组名称>>。

我已经搜寻了解决方案,但没有找到解决方案。可以在R Markdown中完成吗?

I have a template from Word (see photo) that I would like to populate using an R data frame. The fields in the template marked with << >> match the field names from my data frame. I want to input the values from this data frame into the table and then render an individual pdf document for each << Group Name >>.

I have searched far and wide for a solution and have not found one. Can this be done in R Markdown?
template example

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

哭泣的笑容 2025-02-16 11:06:57

查看{redoc}: https://noamross.github.io/redoc/eredoc/ ,请注意,但请注意,但请注意作者将其描述为“暂停动画”。如果那不起作用,请使用{Flextable}手动重新创建桌子。

Check out {redoc}: https://noamross.github.io/redoc/, but note that the author describes it as "in suspended animation". If that doesn't work, manually recreating your table using {flextable} is probably the way to go.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文