【发布时间】:2018-10-09 14:33:10
【问题描述】:
我正在编写一个循环内的代码,如下所示:
for (i in c(1:5)) {
cat(" ", i,".","**", "Header one","**" , " " , sep = "\n")
cat("A)", "Subheader one" , sep = "\n")
cat("B)", "Subheader two" , sep = "\n")
}
我希望它在渲染文件中显示为:
Header One
A) Subtitle one
B) Subtitle two
如何做到这一点? 编辑 这旨在导出到 word .docx
【问题讨论】:
标签: r markdown r-markdown