如何解决书本下来并将山墙表渲染为Word文档
我正在尝试从bookdown
文件生成Word文档。除了我尝试编织电缆表的最后一块以外,其他所有方法似乎都工作良好。生成在页面上运行的表似乎存在问题。如果我尝试渲染:
library(kableExtra)
tab <- bind_rows(mtcars,mtcars,mtcars)
kableExtra::kable(tab) %>%
kable_styling(full_width = T,font_size = 12) %>%
column_spec(1,bold = T)
我收到以下错误:
Error: Functions that produce HTML output found in document targeting docx output.
Please change the output type of this document to HTML. Alternatively,you can allow
HTML output in non-HTML formats by adding this option to the YAML front-matter of
your rmarkdown file:
always_allow_html: true
我的yaml
配置如下:
# Config parametres for word rendering
bookdown::word_document2:
split_by: chapter
toc: yes
toc_depth: 3
如果我添加always_allow_html: true
,我仍然会遇到相同的错误。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。