我通常希望将列表中包含的数据作为重标记文档中的分页表打印出来。如果选择了正确的df_print选项,则调用每个dataframe单独呈现所需的ouptut。然而,拥有一个列表的意义在于,数据的数量取决于传递给rmarkdown文档的参数;所以这不是真正的解决方案。
基于和 of rmarkdown::paged_table,我试图做以下工作,但没有成功。
有没有办法做到这一点呢?我很乐意使用任何与df_print选项类似的支持分页的包。
---
title: "Printing paged tables from a list of dataframes in Rmarkdown
我有一个Rmarkdown文件(info.rmd),如下所示:
---
title: "Information"
theme: yeti
date: "4/1/2017"
output: html_document
---
## R Markdown
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown
我正在尝试使用kableExtra包将表格添加到RMarkdown Powerpoint演示文稿中。最初,我试图在YAML中没有always_use_html的情况下运行代码,出现了以下错误。
Error: Functions that produce HTML output found in document targeting pptx output.
Please change the output type of this document to HTML. Alternatively, you can allow
HTML output in non-HTML formats by