如何将RMD从控制台编织到HTML?

发布于 2025-02-08 00:57:05 字数 301 浏览 3 评论 0原文

在我的rmarkDown中,我使用readline()write.xlsx(),在运行下一个所有块后,我想编织/product htlm文件。 因此,我想知道是否可以将特定代码放在最后,以运行所有块,通过readline()定义参数,导出.csv文件,最后将此.rmd文件编织到html中?

某些东西喜欢以下内容:

x= readline(prompt = " human input ")

openxlsx::write.xlsx()

knit to html

In my rmarkdown I use readline() and write.xlsx(), after running the all chunks next I want to knit/produce HTLM file.
So I wonder if it's possible to put a specific code in the end, in order to run all the chunks, define parameters by readline(), export .csv files and finally knit this .rmd file into HTML?

something likes this:

x= readline(prompt = " human input ")

openxlsx::write.xlsx()

knit to html

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

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

发布评论

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

评论(1

东风软 2025-02-15 00:57:05

do rmarkDown :: render(“ xxx.rmd”)在命令行中。文件中的YAML块确定输出格式。

我不知道这个软件包。它会生成HTML文件吗?

怎么会? rmarkDown是R Markdown的软件包。

Do rmarkdown::render("xxx.Rmd") in command line. The YAML block in the file determines output format.

I don't know this package. Does it generates html file?

How come? rmarkdown is the package for R Markdown.

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