rstudio 0.98.501 中 knit html 按钮背后的代码是什么? [英] What is the code behind the knit html button in rstudio 0.98.501?

查看:43
本文介绍了rstudio 0.98.501 中 knit html 按钮背后的代码是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照 Rstudio 的建议自定义 Markdown 渲染.并在项目目录的根目录创建了一个 .Rprofile 文件,该文件覆盖了默认的 Markdown 渲染选项.但似乎有方程渲染问题(见我之前的问题).

I followed the Rstudio advice to Customize Markdown Rendering. And created an .Rprofile file at the root of the project directory that overrides default markdown rendering options. But there seems to be an issue with equation rendering (see my earlier question).

RSTUDIO 0.98.501 版中knit html"按钮背后的代码是什么?

What is the code behind the "knit html" button in RSTUDIO Version 0.98.501 ?

推荐答案

它正在运行 rmarkdown::render('your_file.Rmd')

默认情况下,它会创建一个与您的 .Rmd 文件同名且在同一目录中的输出文件.如果您查看代码的文档 [1],您会发现实际上可以分别为不同的文件名和不同的目录指定 output_fileoutput_dir.

by default it will create an output file with the same name as your .Rmd file and in the same directory. If you checkout the documentation [1] for the code, you'll see you can actually specify output_file and output_dir for different file names and different directory, respectively.

[1] http://cran.r-project.org/web/包/rmarkdown/

这篇关于rstudio 0.98.501 中 knit html 按钮背后的代码是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆