是否可以创建自渲染的Rmarkdown文档?

问题描述

对于典型的R脚本,可以使用shebang语法在其中运行代码。带有文件file.R

#!/usr/bin/env Rscript

<some R code here>

运行./file.R将执行代码。

但是用R-markdown可以做到吗?这样便有了名为file.Rmd的文件:

#!/usr/bin/env <some command>

<some markdown>
<some R code here>
<some markdown again>

运行./file.Rmd会产生file.md吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)